]> Pileus Git - ~andy/linux/commitdiff
V4L/DVB (6492): tuner: improve tuner_foo printk macros consistency
authorMichael Krufky <mkrufky@linuxtv.org>
Tue, 30 Oct 2007 12:46:10 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:51 +0000 (19:01 -0200)
Alter the tuner_foo printk macros to indicate which module is
generating the message.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-core.c
drivers/media/video/tuner-driver.h

index b92efe0460f34d322b236206aa8386b9a03b385d..17c873c869afc4d7533db9955526c7cdff65dbf1 100644 (file)
@@ -30,6 +30,8 @@
 
 #define UNSET (-1U)
 
+#define PREFIX "tuner "
+
 /* standard i2c insmod options */
 static unsigned short normal_i2c[] = {
 #if defined(CONFIG_TUNER_TEA5761) || (defined(CONFIG_TUNER_TEA5761_MODULE) && defined(MODULE))
index 0df136e58eb38b6e5aa483666f8a1f2723f45ae9..1c60229dcd0ac1d4ca6e34bbe4e578fa2b097111 100644 (file)
@@ -71,15 +71,15 @@ struct tuner {
 /* ------------------------------------------------------------------------ */
 
 #define tuner_warn(fmt, arg...) do {\
-       printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
+       printk(KERN_WARNING PREFIX "%d-%04x: " fmt, \
                        i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
 #define tuner_info(fmt, arg...) do {\
-       printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
+       printk(KERN_INFO PREFIX "%d-%04x: " fmt, \
                        i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
 #define tuner_dbg(fmt, arg...) do {\
        extern int tuner_debug; \
        if (tuner_debug) \
-               printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
+               printk(KERN_DEBUG PREFIX "%d-%04x: " fmt, \
                        i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
 
 #endif /* __TUNER_DRIVER_H__ */