Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3999270imm; Mon, 25 Jun 2018 08:06:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKISDAhVSgcz71VcEaXTohcPm2T+9G9wcjPbfeP9v1mqcbsI2wJybcGdftIfdHvyy8HWO9sC X-Received: by 2002:a17:902:5a4d:: with SMTP id f13-v6mr7617638plm.85.1529939170871; Mon, 25 Jun 2018 08:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529939170; cv=none; d=google.com; s=arc-20160816; b=CNgyVoF67gIUFeiwek7bCGa6eTmnFWKHp3kgjBGogpjEtV+sbRjY95EdM+kplTrwoA 3UK7TfFA4SPjlQszl7zCZMvQIiIGmy8QZkdrZEl5ERiQsTqg7d7IERdI8zCn8VzhVMv+ V9W8QbQO99FyhdoEe4oUSnn71ZsRLmPhqaDlwwZbR+JQUNWefJK4+jZHseXJa4VTcssR 0LbMzJYY421oqy9wTH0xwFdl667SbXNtOqMm595aym6rUgKRfjovc4Gya6awnuei/hdc TOdpJvv5l3abM1hXFSHSPBTT4I/CqBn9DTCyrzs1oqDvjGmESWZGuopi31nuM1x0ZBpv cULw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=12hHzI6PJMRcZffHujrAFJNBF83WvFxsmESlECMaPdY=; b=gmp8DAHyTWwKn/fPtxtgw3lJnPI81oy6CmLhUCqyZKgg/DLcezcNaYlkr+/h9hTuvR bnZKAA8cm5gj8nSef2rYQ1ym98FvV1UWbTqOe8coGTNGmpP5CaS4/fkvVqFBJFtKgYwL LPdSnd5BScliM4maGbyuaQHSi7qHm98Ay6lRLyRrvqg4kKxj0prO7sEfeEnvhGzPsn4w 60FXuJ4aj62fsns2MUTTzFNb6wdz7kjFR9mMi3WFCzoSk6u14+6uggl/di9L1FTg1bfG YGKri+rhM7c7gbv3G3fwQ0UO9w5mOqyWjKrZ3iUiF5lo40svYqh4Ya+2pXg0Xsr5+F51 spWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si14164529pla.98.2018.06.25.08.05.55; Mon, 25 Jun 2018 08:06:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934635AbeFYPEA (ORCPT + 99 others); Mon, 25 Jun 2018 11:04:00 -0400 Received: from smtprelay0191.hostedemail.com ([216.40.44.191]:48647 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934544AbeFYPD7 (ORCPT ); Mon, 25 Jun 2018 11:03:59 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id AFD14837F252; Mon, 25 Jun 2018 15:03:58 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4321:5007:7576:10004:10400:10848:11026:11232:11658:11914:12048:12296:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21433:21451:21627:30003:30054:30056:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: wing75_55bd6ac0c559 X-Filterd-Recvd-Size: 2254 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Mon, 25 Jun 2018 15:03:56 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] arch/x86: get rid of KERN_CONT in show_fault_oops() From: Joe Perches To: Dmitry Vyukov , tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Cc: Dmitry Vyukov Date: Mon, 25 Jun 2018 08:03:55 -0700 In-Reply-To: <20180625123808.227417-1-dvyukov@gmail.com> References: <20180625123808.227417-1-dvyukov@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-06-25 at 14:38 +0200, Dmitry Vyukov wrote: > From: Dmitry Vyukov > > KERN_CONT leads to split lines in kernel output > and complicates useful changes to printk like > printing context before each line. > > Only acceptable use of continuations is basically > boot-time testing. > > Get rid of it. > > Signed-off-by: Dmitry Vyukov > > --- > > Changes since v1: > - use pr_alert() instead of printk(KERN_ALERT) > --- > arch/x86/mm/fault.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c [] > @@ -671,13 +671,9 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code, > printk(smep_warning, from_kuid(&init_user_ns, current_uid())); > } > > - printk(KERN_ALERT "BUG: unable to handle kernel "); > - if (address < PAGE_SIZE) > - printk(KERN_CONT "NULL pointer dereference"); > - else > - printk(KERN_CONT "paging request"); > - > - printk(KERN_CONT " at %px\n", (void *) address); > + pr_alert("BUG: unable to handle kernel %s at %px\n", > + (address < PAGE_SIZE ? "NULL pointer dereference" : > + "paging request"), (void *) address); Perhaps remove the used-once KERN_CRIT uses of nx_warning and smep_warning strings and maybe the unnecessary parentheses and spaces used here too.