Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp736234imm; Wed, 20 Jun 2018 05:56:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJmF9pg6CNvUplRAy6mqkjJsBh3Ymu3Z5MmJZQbsZrRPNSOZBdODC9g7vlgqh+MQKBtvh5K X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr19197191pge.203.1529499403457; Wed, 20 Jun 2018 05:56:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529499403; cv=none; d=google.com; s=arc-20160816; b=xspNBvznE+X1JSnYP7isqW31t3hY7FiZvUAgC4sALFQzIIV5/S4wRuEu+gUC/7MyyH bB8yV+S9FcQfyoEHn2kZBhh5Bzhd5iWNBqQu63rdR9jV+2f3QhflA7bRo2fgfhintB1J hma4OmPImpw27VvGd8fsKZs5y+gQfPYINQrGHIpbAmKDVVwmfm7mLpspjwFD6vAXrX3y cdgunTAsFJj38pw3+TNO1PXVxRUPNGH7X7OYZUHTpO85adJVE2LnUtZeUJK8YTggb9WT 3UKsiGu4Z0MpcC2R0DatDqeSb11O/kuA2xbh0HgqW5b18PE1mgpaKpFMYQJaOjfcVTYv 3MQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=14Nx3j97QC2nfoPtH0LPLyC3KhZqKx4QanebjVu6n1A=; b=JAMIrUhLXkPsL2nf2Jr0JhbE/2229XcYyVUGmJMT+nwpbv8AFbrUZpZoBEEkl3BCyM eve581eZ1QyyowZtV+eJi/2jfuymISDTKN8G/0xslzFAzBsDFpMhH/LiAHKpiKV13f8d WO3HphwH3x9BDr3g9YSWti/kJvrnoiL0Y4cDlVhndRGu0k74ahoRPhTZ2hvLCLLgaxTK zKIKNUKa/0qFN6RLZCwXYtm53O9Us6KrJ2w0jnG6bckfnLv3aslMYCY/vySgxDHr3a2r xvyzLrk6cRHOON0Ijt1FVhOfKD7ZC8oIih8OcnprvN17buYgyHdT4X0TpIZDmQtp85pc yEHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NuRAGmen; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11-v6si1843636pgp.586.2018.06.20.05.56.28; Wed, 20 Jun 2018 05:56:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NuRAGmen; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753276AbeFTMzq (ORCPT + 99 others); Wed, 20 Jun 2018 08:55:46 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:41049 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbeFTMzo (ORCPT ); Wed, 20 Jun 2018 08:55:44 -0400 Received: by mail-wr0-f194.google.com with SMTP id h10-v6so3181744wrq.8 for ; Wed, 20 Jun 2018 05:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=14Nx3j97QC2nfoPtH0LPLyC3KhZqKx4QanebjVu6n1A=; b=NuRAGmenxrKWJ6HDkhtBejAewV3uDR6+NkJiZ+W66od8wrZyJ5aY7O4rwquLa9Hre6 sJiLf5ndMzfbfD5YONhKcstZfqcPDaFUVHB+onh6BvTmEp8EinSgAUaG50BKFSY/r6Od 0nNV2EfTYG9mxGi7/9GWZOT+Vx/slT5ysAiw/lw5BWxI8X43GmHFdbcx+i2ZyjPxNRgw PKIRoY6J4FZ1UHajmgTInNpvoZaajMiy9KGoZeRvx+DoH3Ch0GbtFiWQqNce707/aYHw +Y/7iM4CPed9ZELbz4C7QIpVOzk8/AgSqzp0RvWO38iipbjYpHxEDtEOu+z4I5Mg3L2G wV3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=14Nx3j97QC2nfoPtH0LPLyC3KhZqKx4QanebjVu6n1A=; b=E0EjuMxx1FODhxTzx1FVLL1jhtIRtc46AoxgqbQEmgK5tjnoxN3tEI0OgIbCZ1ih+3 cTCdpnPNTdWwITZNB7y7a8UA80Qr9bnJ7HYZvsj5SB3IAqPI+ft/nrOZLEWwuBc3d8cC eUffi/StVB7zR0BEmh8mR9Np+/rl8wX8uO06hl73R+aMq9VvfDUkdVE05eS9u2Sq0to/ k0yTJKuE010MfLpq+nquAgUpS5v/VQnlJdpGpJ1ORKgf7JpI6igwbAmqdr3Pn2xQ4jtZ GjnjqLPccq3WzEbVVYbbdcyLP0zRbZoT8pXp7qkbECuP2Za+MzVBw6SfJWUapnXWrVt4 VoFQ== X-Gm-Message-State: APt69E3ZYcgRUOhFDcdWnBb+7hG+M6PFigE2Igj4CjQBuBgx94sti9Pf 2NIr+CJCCGrVxqqroyeemWs= X-Received: by 2002:adf:dd8c:: with SMTP id x12-v6mr19437951wrl.212.1529499343576; Wed, 20 Jun 2018 05:55:43 -0700 (PDT) Received: from dvyukov-z840.muc.corp.google.com ([2a00:79e0:15:10:8971:4ae9:dd1c:10e]) by smtp.gmail.com with ESMTPSA id f24-v6sm1943833wmc.0.2018.06.20.05.55.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 05:55:42 -0700 (PDT) From: Dmitry Vyukov To: tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com Cc: Dmitry Vyukov Subject: [PATCH] arch/x86: get rid of KERN_CONT in show_fault_oops() Date: Wed, 20 Jun 2018 14:55:40 +0200 Message-Id: <20180620125540.228766-1-dvyukov@gmail.com> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 index 9a84a0d08727..2a2def636545 100644 --- 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); + printk(KERN_ALERT "BUG: unable to handle kernel %s at %px\n", + (address < PAGE_SIZE ? "NULL pointer dereference" : + "paging request"), (void *) address); dump_pagetable(address); } -- 2.18.0.rc1.244.gcf134e6275-goog