Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp91789ybj; Wed, 6 May 2020 12:18:12 -0700 (PDT) X-Google-Smtp-Source: APiQypIGP5if1uJp4Stjz5n2IoerGK0ZQ/GH7PTvYMq9IP9ntPpR+2cXj2dFUn01VWB0k//Py/j/ X-Received: by 2002:a50:951c:: with SMTP id u28mr8293090eda.310.1588792692164; Wed, 06 May 2020 12:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588792692; cv=none; d=google.com; s=arc-20160816; b=JMnW0TCRvTry4EtuRJbc/OikCfUnFUWVUmZF1PdGtA2OdTO50jaaNLxJdGbyqpcgkO v9AhexZ1226xv9z+0QwoqrXeLXUnGV/eFRpOrR4NlxKwrnQxRtTzSTHr/0IfFMVteRBz sLqfZ33FGURrYGzFvjC1nZecrLKCGBQRCFvauVswgTKxI7i6576jApuQdM4E+mbXbOqb otutGYFZ+FgG1ThmHsbJ6zlZjRxv8GRwgcPlpxFszX+lbVWK3O8dza8FPwApzPmSly4u mvMYZTV9eyEjuHO8f9MSNZuN0ISDH2VnM/IffuSIdbcVYNZdQuef30iMTufBfMX/+Ukg lkBg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=IeObKAMV3CeCYUI/HCW3WT/qmSHxOtiF0/kerHb2/us=; b=il4dzKTefvvONbNaSHp0quyGTM+Cl6PhOu+chPgqd2+3reJ+EBscNFcQhfIgPGJ+c8 utRlRGFXCp0vpZ7gg2fmFSJdMlFxZdLeM1cAkGHVL3yWye27JVexf6vnaUzv5AYNP5nI 2chE11/M0r+HtCVDfl3cuzthfp21e6j2cxKZg+svsSGEDyqNDU3I3tKXQ9lAnknnx/+d 7PUo7Q/TxBCCJEPNpQY5k3Jbm2oFNGbF/C/2ieNAPzorMjUSgPqmHClHPgVMrUmFeI+O Orn8Ksuvog9/rLVlp8lcMOqTMmyCTPnmdIjTsKepq3RjfISKwGzk5L5io6b/OlUvKNeS gAcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz11si1869420ejc.50.2020.05.06.12.17.49; Wed, 06 May 2020 12:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730177AbgEFP00 (ORCPT + 99 others); Wed, 6 May 2020 11:26:26 -0400 Received: from smtprelay0235.hostedemail.com ([216.40.44.235]:37094 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729936AbgEFP0O (ORCPT ); Wed, 6 May 2020 11:26:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 17CEDFB47; Wed, 6 May 2020 15:26:13 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:2910:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3874:4250:4321:5007:10004:10400:10848:11026:11232:11473:11658:11914:12297:12533:12740:12760:12895:13069:13311:13357:13439:14096:14097:14659:14721:21080:21433:21627:21795:30051:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: soda31_704d25b6cc816 X-Filterd-Recvd-Size: 2183 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Wed, 6 May 2020 15:26:11 +0000 (UTC) Message-ID: Subject: Re: [PATCH] printk: Add loglevel for "do not print to consoles". From: Joe Perches To: Tetsuo Handa , Sergey Senozhatsky , Petr Mladek Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Dmitry Safonov , Michal Hocko , Yafang Shao Date: Wed, 06 May 2020 08:26:10 -0700 In-Reply-To: <344199f1-639b-ee93-2388-57b0549641f9@i-love.sakura.ne.jp> References: <20200424024239.63607-1-penguin-kernel@I-love.SAKURA.ne.jp> <20200425004609.GE8982@jagdpanzerIV.localdomain> <842ff40b-a232-6098-4333-996a3033b30a@i-love.sakura.ne.jp> <20200427062117.GC486@jagdpanzerIV.localdomain> <4dae86af-1d9a-f5a8-cff6-aa91ec038a79@i-love.sakura.ne.jp> <344199f1-639b-ee93-2388-57b0549641f9@i-love.sakura.ne.jp> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.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 Wed, 2020-05-06 at 18:45 +0900, Tetsuo Handa wrote: > On 2020/04/28 20:33, Tetsuo Handa wrote: > > On 2020/04/27 15:21, Sergey Senozhatsky wrote: > > > > KERN_NO_CONSOLES is for type of messages where "saved for later analysis" is > > > > important but "printed for immediate notification" is not important. > > > > In other words, KERN_NO_CONSOLES is NOT for dying messages where "printed for > > > > immediate notification" is important. > > > > > > per-console loglevel is a user configurable parameter. > > > KERN_NO_CONSOLES is a hard-coded policy. > > > > But given that whether to use KERN_NO_CONSOLES is configurable via e.g. sysctl, > > KERN_NO_CONSOLES will become a user configurable parameter. What's still wrong? > > > > Any problems remaining? printk_get_level / printk_skip_level and the various uses of %pV using printk_get_level