Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3844072imm; Mon, 25 Jun 2018 05:39:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIR1b0ORvOjPEt9EXNVs4en/KKRp8/1r64FAzDHO/OsGJ/tdjczaHZ44xZmwFvO/fYqc6pr X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr13009754pfm.210.1529930356311; Mon, 25 Jun 2018 05:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529930356; cv=none; d=google.com; s=arc-20160816; b=EShneJ3oTudnq9Tt7ssi2y/8FkWwZX3tgZ6LmViz03Gduelnc344FWNGN2j6tUvUBe W1V3O9hTajRXiepglUknsx7lKCLp3vbbUgNSkRKUdDnhh4kazNTpy9IZs4Sj52JvNj6r A4fLi39w3mC20BvFveBGn+gpVC6TbY7XiEZhlkuCuVJ2MXtDrhRdj1KYYJtrJ9GRrWOf WqsTr9i2HOUl2wKijS6u5F/+E78BllTrniJxtkVKa+9bvpqiAudu+E3bBlAA1PZnZ+/N 1+xSfbbBFwxVQI9XebcGvM7v/66w4HjE5DMFbaA+O9IL5IpFW1S10uJ8fd2wyVKXwz0Q 75Qg== 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=wgIH8PdUl/HVoojcQE/mTChqZCGnvafYX8gGSbuBM1c=; b=xs7REUgDCiJf4uxHgdBEgNsZlOoZX07AgjVSM1D0cvnAqKVqCO27IFiLLcPw6rNP9A 49bAWwSobcHgDNtft/JCkbES6Aq5NAWcjDuQeceYg1zs63tvGdDNi/DrfqsyCYNm4haY poN8Qp5biMP9dMLV2hkN2gAooecEYmel9qGj6MZzuTUKX2g02L7DBRUHeBWe4sklGg0e e4kFQBu4JV7vmGTO6s7ZzgwAc+bgrvOh2cSjt0VVZojkBZ+7FcrW3HU6IVQa2e660o8E nCgS9Ej+/TwO3vgdl2ds/b9Rc1eBVOhEOumPiImA2uNIv0MtsD6c6X/jRJK4lCZG2KDc 7LQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pXHeYBO8; 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 2-v6si4851124pge.464.2018.06.25.05.39.02; Mon, 25 Jun 2018 05:39:16 -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=pXHeYBO8; 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 S933660AbeFYMiO (ORCPT + 99 others); Mon, 25 Jun 2018 08:38:14 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38284 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932246AbeFYMiM (ORCPT ); Mon, 25 Jun 2018 08:38:12 -0400 Received: by mail-wm0-f67.google.com with SMTP id 69-v6so9812133wmf.3 for ; Mon, 25 Jun 2018 05:38:12 -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=wgIH8PdUl/HVoojcQE/mTChqZCGnvafYX8gGSbuBM1c=; b=pXHeYBO8jihvg9RFBR7fs+RlxrbbWjyRW8rybnWzMmLTVEDR/0xd7459E6nhg1jBCW vMtu5z7Sle7DOu8A2aKmlZaHw0bsEURnJn2TywcvM95fiPCnr9IL9hMGxxAsnHLMa0yV BZcg570bCmPn02LYURsyBsKrNAt9s4xRasj3qGBcL3P3FbbG+Xm+XVixD0X1Gk0cBRaR Ip9boZ77jlhBTewEdOGWTzXd34WiRAPHN+R5z4tvwxs9sP0gEDODCDICCp40mq6i07Ke 6EQWr+AWTX/uy0Q9wMnjWssdqxqts1pjSXiLxO69Hh6lhLBdasmQqke+whAKTj+OCNGY 781A== 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=wgIH8PdUl/HVoojcQE/mTChqZCGnvafYX8gGSbuBM1c=; b=IrAbp8RzstlOcNZACN1OG3jmmq6l3o6n6MKFmdT9AkGQ024EEcgJaHkqt38FXXekdO wit/H3N+wvCN36Ny0r52Xw4wsP/mtf+HQx/JVu9uZOw2p0VkMLnz8GnSK9kgFYdAlcSk Sg1wUoIRNWtOzSYfV5GbgruX9rAoL4q9GpyJQfdsVUmgLHZvV+T0P4e9Gjcg1vBlXIiK gBg3IV0DlIH686JAMfpGOFY5/bRUye8KKub8TTmqPVrNgWrtA3lPs3NvCwPERflweJQQ 8tuCTNHTJwPxRa1fveMJgJnwI87GgRHuJAkG5ocZHrS18KejQpG9TGxkIEvpr8ZaaN0V wysw== X-Gm-Message-State: APt69E38xB0+U7PFmSw/cZoiMVPq59jRGkYRyTU0b8zYJMztSTJcXc6b 7OM9O2N6Yiad3vYSkO0TrN4= X-Received: by 2002:a1c:afc3:: with SMTP id y186-v6mr848335wme.87.1529930291796; Mon, 25 Jun 2018 05:38:11 -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 b6-v6sm9752534wro.52.2018.06.25.05.38.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jun 2018 05:38:10 -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 v2] arch/x86: get rid of KERN_CONT in show_fault_oops() Date: Mon, 25 Jun 2018 14:38:08 +0200 Message-Id: <20180625123808.227417-1-dvyukov@gmail.com> X-Mailer: git-send-email 2.18.0.rc2.346.g013aa6912e-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 --- 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 index 9a84a0d08727..b9ceeaadde48 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); + pr_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.rc2.346.g013aa6912e-goog