Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1413776imm; Wed, 20 Jun 2018 18:07:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKITF/FiQrP0uga2+UsPvOyJYN2wP8ESsC7MroFOAmn9GG5YK5qWqh/GBdaVeHWwz1easpyE X-Received: by 2002:a62:5991:: with SMTP id k17-v6mr25089800pfj.94.1529543230252; Wed, 20 Jun 2018 18:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529543230; cv=none; d=google.com; s=arc-20160816; b=x5TcD5neKlRrpq+kKlJUkzTkiVnqNxAUUMMoJx90wDuUPL2U/zWxlauWBvf2ka7B2C YVDdLUbT6u4JqRXSq2jUBZlyenOPluTLKQwzvu+29spmTlmxDl4Fa7Pw61cGY2Xvfnom yZKVy1pkpeg4ZV3dRgA4NtMRu9HesZChmBpRPu8ZksThFGlUynafXRPKiknEcyM9po6S t3ldOFMfrPprgTL5tWvuUfih41M71UG3GMgGoNrUo9auvNngPgclGTLkubO3+vCchG/g haElJzKNHMLcpE4UYfv8mU+bVKm/MM/heJP17mXn5bVjBl0g6M0v0Xc9+BqWNt+KyIRW 7ETw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=aT/6/8CNx/VsgAKH7AsRyP37G4rTMft3k0OoADdl2jE=; b=ZonTCJxlKKZyKEmQTLUSEisH7xI6KrQeEvF6oRdxPqG2SVg3YvoB+PvP9qhSs9SWRc Ii3Sb2I76MnI70eT2tRlZ2Zi06BiRTDSZCk3i/X6x0s0jsn3eR+dhzOZOzBY4XVMcUQZ AdeQAwrUvvvQHLbc9naCQzBZMHOviob3ste4Yf9UWsdfaVmvjDMWQDVTzUSecIbTaSRq 4U2jWGCPulwgrujTLKxhKSWu7+MsPLTe/R3n8WZzw75GhyltIaeKZnDZQw3ve7Vknq66 DLryWIiIdI8TA0YdT+6WHVSLhr0DmhTciaZEh/d0XYNr0uscVlwc3OFz73LaUADCmUzM rpqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s5IyJErA; 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 130-v6si2290660pgh.144.2018.06.20.18.06.53; Wed, 20 Jun 2018 18:07: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s5IyJErA; 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 S1754572AbeFUBGK (ORCPT + 99 others); Wed, 20 Jun 2018 21:06:10 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:38582 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754554AbeFUBGG (ORCPT ); Wed, 20 Jun 2018 21:06:06 -0400 Received: by mail-vk0-f66.google.com with SMTP id b77-v6so877771vkb.5 for ; Wed, 20 Jun 2018 18:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=aT/6/8CNx/VsgAKH7AsRyP37G4rTMft3k0OoADdl2jE=; b=s5IyJErAkLB21P10jEeZDHow/9W9Ih5BnMUrKc61Ax5DRikf+8cyFVhV0UHQlzCQ2K P6lsLbk3CEjTgAqsdCJoddq0bxeRg4vch8Zg/PRa0mEX1q0GQqLCqWROcQYpoD8d9sxr jQ6jBBxh1opDTKLBWsQlVUVppMXpRNb+9Sm0KY7JUe3HRIOIWbKPjviwBKxZ/hEc1u3Y 8TRhMbSPnwKfmekRNnA9i3Q7Wx5G2kMWMuLojbrq4MfNH8l2ENwbrCeU1uTZffi108EO siloVw0/Wo8+ySgLfbVwQTgOpKRDU6pZ0at3KAn/Zcr8+ysm1fwU5DIya/a6gvwGjdZS SEcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=aT/6/8CNx/VsgAKH7AsRyP37G4rTMft3k0OoADdl2jE=; b=nYpEGFiLJkPjc4V0vNT/jOMsITkOpynP5VSkFc4N7xgF/xCeZDDXnbjrIiJ4CL/1Qj Fag1ZPzz3sagHtQUQ7Z/fkf7HT3dcxFNCtMAUgaJzfZqRLt/Cz1UrrRQaYrnZP8UmNaV ykGnkHFi/1xLZVZbp975HE66C10HTn9hIUAvzhmaotqOo3USsOeIOfbyGl/6YCP+Hjs7 791YIc7qInLe9KdZ5VTgl4VGJV4kXDlnVac0cVBB0RTJskXvleJx26p2xzNjNf0GZRec wO0i8KLR8S7ahY8l4kPWC+xaNotTHu33PCoDG2WY+wFfoW9e+zxIhuE1DzxtIc/lJz9M q5uQ== X-Gm-Message-State: APt69E3QhQwa3db4f2B3mpWtZrh3EJLrxBdi0FONSLCpu6CufzXla5Je Y8+jvDJbd+HfrIleN7PuLVbh4OiN9PCzeb8fizQ= X-Received: by 2002:a1f:860b:: with SMTP id i11-v6mr13776719vkd.15.1529543165766; Wed, 20 Jun 2018 18:06:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 18:06:05 -0700 (PDT) In-Reply-To: <20180620125540.228766-1-dvyukov@gmail.com> References: <20180620125540.228766-1-dvyukov@gmail.com> From: Andy Shevchenko Date: Thu, 21 Jun 2018 04:06:05 +0300 Message-ID: Subject: Re: [PATCH] arch/x86: get rid of KERN_CONT in show_fault_oops() To: Dmitry Vyukov Cc: Thomas Gleixner , Ingo Molnar , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Linux Kernel Mailing List , Sergey Senozhatsky , Dmitry Vyukov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 3:55 PM, 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. > + printk(KERN_ALERT "BUG: unable to handle kernel %s at %px\n", > + (address < PAGE_SIZE ? "NULL pointer dereference" : > + "paging request"), (void *) address); Perhaps pr_alert() ? Btw, parens are redundant for the first argument. P.S. And personally I would rather do if (address < PAGE_SIZE) pr_alert(...NULL pointer dereference...); else pr_alert(...paging request...); -- With Best Regards, Andy Shevchenko