staging: bcm2835-audio: bcm2835.h: fix printk coding style issue
authorNathan Howard <adanhawthorn@gmail.com>
Fri, 17 Feb 2017 20:16:18 +0000 (15:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:02 +0000 (09:17 +0100)
Fix checkpatch.pl warning of the form "WARNING: Prefer
subsystem eg: netdev]_info([subsystem]dev, ...
then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ..."

Signed-off-by: Nathan Howard <adanhawthorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm2835-audio/bcm2835.h

index 66af445ed08a79dc519224b3cdf307efcd0b76f9..81fdb1041f0623c7c60038d475e0849d3ce39b9e 100644 (file)
 #ifdef AUDIO_VERBOSE_DEBUG_ENABLE
 
 #define audio_debug(fmt, arg...) \
-       printk(KERN_INFO"%s:%d " fmt, __func__, __LINE__, ##arg)
+       pr_info("%s:%d " fmt, __func__, __LINE__, ##arg)
 
 #define audio_info(fmt, arg...) \
-       printk(KERN_INFO"%s:%d " fmt, __func__, __LINE__, ##arg)
+       pr_info("%s:%d " fmt, __func__, __LINE__, ##arg)
 
 #else
 
 #endif /* AUDIO_DEBUG_ENABLE */
 
 #define audio_error(fmt, arg...) \
-       printk(KERN_ERR"%s:%d " fmt, __func__, __LINE__, ##arg)
+       pr_err("%s:%d " fmt, __func__, __LINE__, ##arg)
 
 #define audio_warning(fmt, arg...) \
-       printk(KERN_WARNING"%s:%d " fmt, __func__, __LINE__, ##arg)
+       pr_warn("%s:%d " fmt, __func__, __LINE__, ##arg)
 
 #define audio_alert(fmt, arg...) \
-       printk(KERN_ALERT"%s:%d " fmt, __func__, __LINE__, ##arg)
+       pr_alert("%s:%d " fmt, __func__, __LINE__, ##arg)
 
 #define MAX_SUBSTREAMS   (8)
 #define AVAIL_SUBSTREAMS_MASK  (0xff)