Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: i4l: icn: prefer pr_* instead of printk

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 <harman4linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Harman Kalra and committed by
Greg Kroah-Hartman
bdb2a2ff db0e8e57

+1 -1
+1 -1
drivers/staging/i4l/icn/icn.h
··· 54 54 55 55 /* some useful macros for debugging */ 56 56 #ifdef ICN_DEBUG_PORT 57 - #define OUTB_P(v, p) {printk(KERN_DEBUG "icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p);} 57 + #define OUTB_P(v, p) {pr_debug("icn: outb_p(0x%02x,0x%03x)\n", v, p); outb_p(v, p);} 58 58 #else 59 59 #define OUTB_P outb 60 60 #endif