Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755385AbdFWU1U (ORCPT ); Fri, 23 Jun 2017 16:27:20 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47164 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755155AbdFWU1S (ORCPT ); Fri, 23 Jun 2017 16:27:18 -0400 Date: Sat, 24 Jun 2017 00:34:00 +0800 From: Greg Kroah-Hartman To: simran singhal Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8192u: ieee80211: Convert printks to pr_ Message-ID: <20170623163400.GA25815@kroah.com> References: <20170621121932.GA24891@singhal-Inspiron-5558> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170621121932.GA24891@singhal-Inspiron-5558> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 29 On Wed, Jun 21, 2017 at 05:49:32PM +0530, simran singhal wrote: > Use the current logging style. > Coalesce formats where appropriate. > > Signed-off-by: simran singhal > --- > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 34 ++++++++++------------- > 1 file changed, 14 insertions(+), 20 deletions(-) > > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c > index 7a31510..d1a86bb 100644 > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c > @@ -236,8 +236,8 @@ ieee80211_rx_frame_mgmt(struct ieee80211_device *ieee, struct sk_buff *skb, > > #ifdef NOT_YET > if (ieee->iw_mode == IW_MODE_MASTER) { > - printk(KERN_DEBUG "%s: Master mode not yet supported.\n", > - ieee->dev->name); > + pr_debug("%s: Master mode not yet supported.\n", > + ieee->dev->name); This is a network driver, why not use net_dbg() or at the very least, dev_dbg(), which all drivers should use (never use pr_* or printk in a driver if at all possible.) thanks, greg k-h