Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3846286imm; Mon, 25 Jun 2018 05:41:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIBQuiStei9sRQEnsmfsBhK6n3Zk5gxzpaxjkv64F8G+XyEordsyyuJ75PtFA2Webs4hJCy X-Received: by 2002:a17:902:a715:: with SMTP id w21-v6mr12277839plq.111.1529930500566; Mon, 25 Jun 2018 05:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529930500; cv=none; d=google.com; s=arc-20160816; b=OXCmBI18pNyLHWLdIMYATu4oDqjvK2JrVbqB6LeVd7m1j7OykGGdG4t3csJ5g9fVOq P8ZXszywfEfxHX9B/fnEY9W+86DT3qgB0j3kIMQExb7290dW05APSTZI/5l21OGs8f8y OY0sNLihZSDdaHtT48ue+RY3U6GYX0wElVjhDaciNDYqa2qwumzGo3Ip5VLlyy3tZb7R +91pE6zkui5nsJ9xx66DZamNkm1GYXiTcCnvSTGQ7hDKQltVSJFSYzz1R019q1M5KAtH +o4guFMgHqKnlDQ0+3om1md+sTfloPwTnRSTHcHFfJih4i3AdCmx+0wk0dP549wJDLQU VWkw== 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=I6I1Xdja27lprqUfXNY4jTSrTq1PzSBNCimJ6lQV66U=; b=h3lELxy+i6IVZsNlQ5o2JGnWpM99ONqypc2h5/OfBjfAtqu/9w0kgtlcdo848OAZHc EVZUO4FA1pjOe6s6vP6/cXLqzQdS6XrQq0YY7HrmVyi5rNqphxroe6LvtxyWMXbL8prI SfPVC+pysxlgmwCqzxST5UWNOrbm36a2ksbFdpYrfr+SAjwLJjFC/7hlEa/rrYlaGzNS 4OmdE1OXarN3IWxCl3BYY1y3ROqoe/ckfYLSB3Tc/hyDiY+QATqR17VShYylTlqkPT10 1VslnyXG/MjR8Rti9TSFbqCNq7+mc6U/OFQMBGbJsyRjL8nG8gJqugHOpabGFmgKNzhd R5JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BcRfNiNc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si11843127pgr.175.2018.06.25.05.41.25; Mon, 25 Jun 2018 05:41:40 -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=@google.com header.s=20161025 header.b=BcRfNiNc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755144AbeFYMkX (ORCPT + 99 others); Mon, 25 Jun 2018 08:40:23 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36747 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753456AbeFYMkV (ORCPT ); Mon, 25 Jun 2018 08:40:21 -0400 Received: by mail-pg0-f67.google.com with SMTP id m5-v6so6011676pgd.3 for ; Mon, 25 Jun 2018 05:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I6I1Xdja27lprqUfXNY4jTSrTq1PzSBNCimJ6lQV66U=; b=BcRfNiNcUydP3RnAH9WzRe/Ipif6kY8Oa4zO7DEysNbXed669nQBnHNpsfmWO2160Y YPmz08eR/QErjqn1TnPeExeHNPCkkDTOGkvEnsS4rfCJOU34cQF7BKuxv8nqfnqNFsC4 o+o8N6wBy/kcngaZgl9g4kiAQCMrAk2Cv8y7En7x6ApFySAENyYZX0e8ffCE7+fD5XA3 won8Avasm0xGUUfxI+hexDPh02TuV5GzY8hdifT0wg7Xr598OT1g3NXMCYp45zASnSOI 8E8JBrMRH+AQBwUG91e/1aIaEpNqO9XQ5wmWd8d+z9VBDkquOYqCWbKaLgFUD31gjpyo OCyA== 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=I6I1Xdja27lprqUfXNY4jTSrTq1PzSBNCimJ6lQV66U=; b=LylmVx7wMgxoXLBRtitlrKzEDoEY5m6BQRbKs72CTgyYK5tTetWJPOGRXXwZunX9V0 VleSCer32IjZ0vlLXOx+mvxDNtX6jMci0HGWNv0WehDTAZwiLPH6znylsMbUQDjRENK2 gTid7NyJVShPJpmsWuJH3bruzdzSjrdOTuIfcEEUdZ49nH+3HhHMNDdLrGOwTfpoCv1E GoY6/TcZeqwkCuCSwrFVklHPzBYHFH88N0q8wiEDD+U0F77jSdByvFVZM0SgMAC2S1NN lInXjVVURvlSfPF8hS+OK615yStYgquC+f9Jafv9Lt3D9dgKdBwe98yjjHSxo+hT7kcJ ihkg== X-Gm-Message-State: APt69E0vSL8SdYkFXhEcxiUniAaPyyhwoOlM6aMvOE0jB6fGFVpe5MDu r2meYHAD/EMhyy9O7aEX8srufgd3KYYPVPwlQZLz6A== X-Received: by 2002:a65:490d:: with SMTP id p13-v6mr10229295pgs.84.1529930420968; Mon, 25 Jun 2018 05:40:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:de2:0:0:0:0 with HTTP; Mon, 25 Jun 2018 05:40:00 -0700 (PDT) In-Reply-To: <20180621081704.GA677@jagdpanzerIV> References: <20180620125540.228766-1-dvyukov@gmail.com> <20180621081704.GA677@jagdpanzerIV> From: Dmitry Vyukov Date: Mon, 25 Jun 2018 14:40:00 +0200 Message-ID: Subject: Re: [PATCH] arch/x86: get rid of KERN_CONT in show_fault_oops() To: Sergey Senozhatsky Cc: Andy Shevchenko , Dmitry Vyukov , Thomas Gleixner , Ingo Molnar , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Linux Kernel Mailing List 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 Thu, Jun 21, 2018 at 10:17 AM, Sergey Senozhatsky wrote: > On (06/21/18 09:59), Dmitry Vyukov wrote: >> > >> >> + 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() ? >> >> It's the same, right? Make sense. > > Right. > > In printk(KERN_ ...) people tend to forget KERN_ sometimes, > so, I think, in general we want to see more pr_foo() and less printk(). Mailed v2 with pr_alert(). Since nobody else commented on single pr_alert() with ternary operator vs if + 2 pr_alert()'s, I left it intact for now.