From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755774AbcBEQOM (ORCPT ); Fri, 5 Feb 2016 11:14:12 -0500 Received: from smtprelay0181.hostedemail.com ([216.40.44.181]:45189 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755720AbcBEQOH (ORCPT ); Fri, 5 Feb 2016 11:14:07 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3871:3872:3874:3876:4250:4321:5007:6261:7514:7903:10004:10400:10848:11026:11232:11658:11783:11914:12043:12438:12517:12519:12555:12740:13069:13311:13357:13894:14659:21080:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: skate77_7a9b86ae5f64e X-Filterd-Recvd-Size: 2505 Message-ID: <1454688841.3263.16.camel@perches.com> Subject: Re: [PATCH 1/2] printk: introduce pr_default() macro From: Joe Perches To: Chen Yucong , mingo@kernel.org Cc: tglx@linutronix.de, hpa@zytor.com, x86@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Date: Fri, 05 Feb 2016 08:14:01 -0800 In-Reply-To: <1454680092-30523-1-git-send-email-slaoub@gmail.com> References: <1454680092-30523-1-git-send-email-slaoub@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.3-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-02-05 at 21:48 +0800, Chen Yucong wrote: > Until now, we cover all log-levels by pr_  macros except > KERN_DEFAULT one. Add it for convenience. > > Signed-off-by: Chen Yucong > --- >  include/linux/printk.h | 6 ++++++ >  1 file changed, 6 insertions(+) > > diff --git a/include/linux/printk.h b/include/linux/printk.h > index 51dd6b8..9808130 100644 > --- a/include/linux/printk.h > +++ b/include/linux/printk.h > @@ -274,6 +274,8 @@ extern asmlinkage void dump_stack(void) __cold; >   */ >  #define pr_cont(fmt, ...) \ >   printk(KERN_CONT fmt, ##__VA_ARGS__) > +#define pr_default(fmt, ...) \ > + printk(KERN_DEFAULT pr_fmt(fmt), ##__VA_ARGS__) >   >  /* pr_devel() should produce zero code unless DEBUG is defined */ >  #ifdef DEBUG > @@ -345,6 +347,8 @@ extern asmlinkage void dump_stack(void) __cold; >   printk_once(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) >  #define pr_cont_once(fmt, ...) > \ >   printk_once(KERN_CONT pr_fmt(fmt), ##__VA_ARGS__) > +#define pr_default_once(fmt, ...) \ > + printk_once(KERN_DEFAULT pr_fmt(fmt), ##__VA_ARGS__) >   >  #if defined(DEBUG) >  #define pr_devel_once(fmt, ...) > \ > @@ -396,6 +400,8 @@ extern asmlinkage void dump_stack(void) __cold; >   printk_ratelimited(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__) >  #define pr_info_ratelimited(fmt, ...) > \ >   printk_ratelimited(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) > +#define pr_default_ratelimited(fmt, ...) > \ > + printk_ratelimited(KERN_DEFAULT pr_fmt(fmt), ##__VA_ARGS__) >  /* no pr_cont_ratelimited, don't do that... */ >   >  #if defined(DEBUG)