Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbcJIPfS (ORCPT ); Sun, 9 Oct 2016 11:35:18 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35393 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbcJIPfQ (ORCPT ); Sun, 9 Oct 2016 11:35:16 -0400 From: Harman Kalra To: gregkh@linuxfoundation.org, arnd@arndb.de Cc: sudipm.mukherjee@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Harman Kalra Subject: [PATCH 2/3] Staging: i4l: icn: prefer pr_* instead of printk Date: Sun, 9 Oct 2016 21:05:03 +0530 Message-Id: <1476027304-10426-2-git-send-email-harman4linux@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1476027304-10426-1-git-send-email-harman4linux@gmail.com> References: <20161009150010.GC26420@kroah.com> <1476027304-10426-1-git-send-email-harman4linux@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 26 This patch replaces call to printk with appropriate pr_* function thus addressing the following warning generated by the checkpatch script: Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... Signed-off-by: Harman Kalra --- drivers/staging/i4l/icn/icn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/i4l/icn/icn.h b/drivers/staging/i4l/icn/icn.h index f8f2e76..e273c27 100644 --- a/drivers/staging/i4l/icn/icn.h +++ b/drivers/staging/i4l/icn/icn.h @@ -54,7 +54,7 @@ /* some useful macros for debugging */ #ifdef ICN_DEBUG_PORT -#define OUTB_P(v, p) {printk(KERN_DEBUG "icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p);} +#define OUTB_P(v, p) {pr_debug("icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p);} #else #define OUTB_P outb #endif -- 1.7.9.5