aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-08-26 21:43:16 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:34 -0400
commit1b6b73336dbb3c6513ce7d8454b279fd96603126 (patch)
tree30c935dc7999bc3325efcfd8483e07fcaac635fc /drivers/media
parent8e30ddcf2fbd2ec68ec42156d9a04d946d195b54 (diff)
V4L/DVB (12576): tda18271: simplify debug printk macros
Rename dprintk to tda_dprintk to be consistent with the other tda_foo macros. Move KERN_DEBUG facility level to tda_dprintk. Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/common/tuners/tda18271-priv.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/common/tuners/tda18271-priv.h b/drivers/media/common/tuners/tda18271-priv.h
index 74beb28806f8..48db9c679e4e 100644
--- a/drivers/media/common/tuners/tda18271-priv.h
+++ b/drivers/media/common/tuners/tda18271-priv.h
@@ -137,17 +137,17 @@ extern int tda18271_debug;
137#define tda_printk(kern, fmt, arg...) \ 137#define tda_printk(kern, fmt, arg...) \
138 printk(kern "%s: " fmt, __func__, ##arg) 138 printk(kern "%s: " fmt, __func__, ##arg)
139 139
140#define dprintk(kern, lvl, fmt, arg...) do {\ 140#define tda_dprintk(lvl, fmt, arg...) do {\
141 if (tda18271_debug & lvl) \ 141 if (tda18271_debug & lvl) \
142 tda_printk(kern, fmt, ##arg); } while (0) 142 tda_printk(KERN_DEBUG, fmt, ##arg); } while (0)
143 143
144#define tda_info(fmt, arg...) printk(KERN_INFO fmt, ##arg) 144#define tda_info(fmt, arg...) printk(KERN_INFO fmt, ##arg)
145#define tda_warn(fmt, arg...) tda_printk(KERN_WARNING, fmt, ##arg) 145#define tda_warn(fmt, arg...) tda_printk(KERN_WARNING, fmt, ##arg)
146#define tda_err(fmt, arg...) tda_printk(KERN_ERR, fmt, ##arg) 146#define tda_err(fmt, arg...) tda_printk(KERN_ERR, fmt, ##arg)
147#define tda_dbg(fmt, arg...) dprintk(KERN_DEBUG, DBG_INFO, fmt, ##arg) 147#define tda_dbg(fmt, arg...) tda_dprintk(DBG_INFO, fmt, ##arg)
148#define tda_map(fmt, arg...) dprintk(KERN_DEBUG, DBG_MAP, fmt, ##arg) 148#define tda_map(fmt, arg...) tda_dprintk(DBG_MAP, fmt, ##arg)
149#define tda_reg(fmt, arg...) dprintk(KERN_DEBUG, DBG_REG, fmt, ##arg) 149#define tda_reg(fmt, arg...) tda_dprintk(DBG_REG, fmt, ##arg)
150#define tda_cal(fmt, arg...) dprintk(KERN_DEBUG, DBG_CAL, fmt, ##arg) 150#define tda_cal(fmt, arg...) tda_dprintk(DBG_CAL, fmt, ##arg)
151 151
152#define tda_fail(ret) \ 152#define tda_fail(ret) \
153({ \ 153({ \