summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-30 08:46:10 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-30 08:46:10 -0400
commit038a10c51af779688d9232b546b602e5c5cc8e05 (patch)
treeace989063f40a67e0944fb31789d3a776748a515 /linux/drivers
parentc832058436bbbe87a61b7ae5f58bd5adc2aed17e (diff)
downloadmediapointer-dvb-s2-038a10c51af779688d9232b546b602e5c5cc8e05.tar.gz
mediapointer-dvb-s2-038a10c51af779688d9232b546b602e5c5cc8e05.tar.bz2
tuner: improve tuner_foo printk macros consistency
From: Michael Krufky <mkrufky@linuxtv.org> Alter the tuner_foo printk macros to indicate which module is generating the message. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-core.c2
-rw-r--r--linux/drivers/media/video/tuner-driver.h12
2 files changed, 8 insertions, 6 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 30aa1f48d..1f116878d 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -34,6 +34,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))
diff --git a/linux/drivers/media/video/tuner-driver.h b/linux/drivers/media/video/tuner-driver.h
index d5acacebd..502c88dab 100644
--- a/linux/drivers/media/video/tuner-driver.h
+++ b/linux/drivers/media/video/tuner-driver.h
@@ -72,27 +72,27 @@ struct tuner {
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
#define tuner_warn(fmt, arg...) do {\
- printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c->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->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->name, \
+ printk(KERN_DEBUG PREFIX "%d-%04x: " fmt, \
i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
#else
#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