Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751264AbcJIOkj (ORCPT ); Sun, 9 Oct 2016 10:40:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58921 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbcJIOki (ORCPT ); Sun, 9 Oct 2016 10:40:38 -0400 Date: Sun, 9 Oct 2016 16:40:04 +0200 From: Greg KH To: Harman Kalra Cc: sudipm.mukherjee@gmail.com, bankarsandhya512@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: i4l: act2000: Fixed warning "use pr_* instead of printk" Message-ID: <20161009144004.GA21323@kroah.com> References: <1476023280-8614-1-git-send-email-harman4linux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476023280-8614-1-git-send-email-harman4linux@gmail.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1162 Lines: 29 On Sun, Oct 09, 2016 at 07:58:00PM +0530, Harman Kalra wrote: > This patch replaces calls to the "printk" with appropriate "pr_*" > function thus addressing the following warning generated by the > checkpatch script: > > Prefer [subsystem eg: netdev]_warn([subsystem]dev, ... then > dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... > > Signed-off-by: Harman Kalra > --- > drivers/staging/i4l/act2000/act2000_isa.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) > > diff --git a/drivers/staging/i4l/act2000/act2000_isa.c b/drivers/staging/i4l/act2000/act2000_isa.c > index ad7a039..1a91b52 100644 > --- a/drivers/staging/i4l/act2000/act2000_isa.c > +++ b/drivers/staging/i4l/act2000/act2000_isa.c > @@ -78,10 +78,10 @@ > if (istatus & ISA_ISR_ERR) { > /* Error Interrupt */ > istatus &= ISA_ISR_ERR_MASK; > - printk(KERN_WARNING "act2000: errIRQ\n"); > + pr_warn("act2000: errIRQ\n"); > } > if (istatus) > - printk(KERN_DEBUG "act2000: ?IRQ %d %02x\n", card->irq, istatus); > + pr_warn("act2000: ?IRQ %d %02x\n", card->irq, istatus); shouldn't that be pr_debug()?