From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932504AbeCKW2x (ORCPT ); Sun, 11 Mar 2018 18:28:53 -0400 Received: from mail.us.es ([193.147.175.20]:47504 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbeCKW2v (ORCPT ); Sun, 11 Mar 2018 18:28:51 -0400 Date: Sun, 11 Mar 2018 23:28:46 +0100 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Arushi Singhal Cc: Joe Perches , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Netfilter Developer Mailing List , coreteam@netfilter.org, Linux Kernel Network Developers , LKML Subject: Re: [PATCH v2] net: netfilter: Replace printk() with appropriate pr_*() macro Message-ID: <20180311222846.av3tui5nkuximoqk@salvia> References: <20180311194104.GA17450@seema-Inspiron-15-3567> <1520797961.19456.4.camel@perches.com> <20180311204734.aczkhqqgtb7z2kkj@salvia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 03:56:15AM +0530, Arushi Singhal wrote: > On Mon, Mar 12, 2018 at 2:17 AM, Pablo Neira Ayuso > wrote: > > > Hi Joe, > > > > On Sun, Mar 11, 2018 at 12:52:41PM -0700, Joe Perches wrote: > > > On Mon, 2018-03-12 at 01:11 +0530, Arushi Singhal wrote: > > > > Using pr_() is more concise than > > > > printk(KERN_). > > > > Replace printks having a log level with the appropriate > > > > pr_*() macros. > > > > > > > > Signed-off-by: Arushi Singhal > > > > --- > > > > changes in v2 > > > > *in v1 printk() were replaced with netdev_*() > > > > > > > net/netfilter/nf_conntrack_acct.c | 2 +- > > > > net/netfilter/nf_conntrack_ecache.c | 2 +- > > > > net/netfilter/nf_conntrack_timestamp.c | 2 +- > > > > net/netfilter/nf_nat_core.c | 2 +- > > > > net/netfilter/nfnetlink_queue.c | 4 ++-- > > > > 5 files changed, 6 insertions(+), 6 deletions(-) > > > > > > None of these files have a #define for pr_fmt so this > > > should be OK. > > > > I think Arushi could add pr_fmt in the same go, so we skip another > > follow up patch for this. @Arushi: I suggested this in my previous > > email, please have a look. > > > > Hello Pablo > > Should I send two patches, one with the conversion of printk() to pr_() and > another for defining pr_fmt(). > > Or > > only one patch with all the changes? I think adding pr_fmt and use pr_() belongs to the same logical change, so one patch for this is fine. Thanks Arushi. P.S: Please, just send your patch netfilter-devel@vger.kernel.org next time, no need to Cc every list. Thanks!