ncr5380: Use printk() not pr_debug()
authorFinn Thain <[email protected]>
Wed, 12 Nov 2014 05:11:47 +0000 (16:11 +1100)
committerChristoph Hellwig <[email protected]>
Thu, 20 Nov 2014 08:11:02 +0000 (09:11 +0100)
Having defined NDEBUG, and having set the console log level, I'd like to see
some output. Don't use pr_debug(), it's annoying to have to define DEBUG as
well.

Signed-off-by: Finn Thain <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Tested-by: Michael Schmitz <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
drivers/scsi/NCR5380.h

index c79ddfa6f53c52d58ab814846fb5023ed821bf4a..8b96b687885ba98973c26fb9b26a7919ccd5ec0b 100644 (file)
@@ -296,7 +296,8 @@ struct NCR5380_hostdata {
 #endif
 
 #define dprintk(flg, fmt, ...) \
-       do { if ((NDEBUG) & (flg)) pr_debug(fmt, ## __VA_ARGS__); } while (0)
+       do { if ((NDEBUG) & (flg)) \
+               printk(KERN_DEBUG fmt, ## __VA_ARGS__); } while (0)
 
 #if NDEBUG
 #define NCR5380_dprint(flg, arg) \