summaryrefslogtreecommitdiff
path: root/drivers/media/rc/ene_ir.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-08-21 19:56:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-03 20:57:09 -0300
commit7de3461c93a6d65355113cca333723eb8a1a0225 (patch)
tree73dcf3d77ea52fa0996a0716a36cd58a415f0fbe /drivers/media/rc/ene_ir.h
parent86b0dbef777a1fbb9922e304f047921d4e9d9c40 (diff)
[media] ene_ir: Use current logging styles
Add pr_fmt. Convert ene_warn and ene_notice to pr_<level>. Use pr_debug in __dbg macro and a little neatening. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/ene_ir.h')
-rw-r--r--drivers/media/rc/ene_ir.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/media/rc/ene_ir.h b/drivers/media/rc/ene_ir.h
index 017c209cdf8a..fd108d90f750 100644
--- a/drivers/media/rc/ene_ir.h
+++ b/drivers/media/rc/ene_ir.h
@@ -182,20 +182,11 @@
#define ENE_HW_C 2 /* 3926C */
#define ENE_HW_D 3 /* 3926D or later */
-#define ene_printk(level, text, ...) \
- printk(level ENE_DRIVER_NAME ": " text "\n", ## __VA_ARGS__)
-
-#define ene_notice(text, ...) ene_printk(KERN_NOTICE, text, ## __VA_ARGS__)
-#define ene_warn(text, ...) ene_printk(KERN_WARNING, text, ## __VA_ARGS__)
-
-
-#define __dbg(level, format, ...) \
- do { \
- if (debug >= level) \
- printk(KERN_DEBUG ENE_DRIVER_NAME \
- ": " format "\n", ## __VA_ARGS__); \
- } while (0)
-
+#define __dbg(level, format, ...) \
+do { \
+ if (debug >= level) \
+ pr_debug(format "\n", ## __VA_ARGS__); \
+} while (0)
#define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__)
#define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__)