summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-25 23:25:36 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-25 23:40:06 -0300
commit7cec72ce00c174fd74d1183599d3d3dcc5dedc26 (patch)
treef224f821fe20cdee6581ed350cf876d1b0cb9f34 /include/media
parentd6740d86deda4acc8dc2cf196ccb9d8eb30bcb9a (diff)
downloadop-kernel-dev-7cec72ce00c174fd74d1183599d3d3dcc5dedc26.zip
op-kernel-dev-7cec72ce00c174fd74d1183599d3d3dcc5dedc26.tar.gz
[media] rc-core: don't use dynamic_pr_debug for IR_dprintk()
The hole point of IR_dprintk() is that, once a level is given at debug parameter, all enabled IR parsers will show their debug messages. While converting it to dynamic_printk might be a good idea, right now it just makes very hard to debug the drivers, as one needs to both pass debug=1 or debug=2 to rc-core and to use the dynamic printk to enable all the desired lines. That doesn't make sense! So, revert to the old way, as a single line is changed, and the debug parameter will now work as expected. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/rc-core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h
index 3047837..2c7fbca 100644
--- a/include/media/rc-core.h
+++ b/include/media/rc-core.h
@@ -26,7 +26,7 @@ extern int rc_core_debug;
#define IR_dprintk(level, fmt, ...) \
do { \
if (rc_core_debug >= level) \
- pr_debug("%s: " fmt, __func__, ##__VA_ARGS__); \
+ printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \
} while (0)
enum rc_driver_type {
OpenPOWER on IntegriCloud