diff options
author | Joe Perches <joe@perches.com> | 2011-08-21 18:56:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-03 19:57:09 -0400 |
commit | 7de3461c93a6d65355113cca333723eb8a1a0225 (patch) | |
tree | 73dcf3d77ea52fa0996a0716a36cd58a415f0fbe /drivers/media/rc/ene_ir.h | |
parent | 86b0dbef777a1fbb9922e304f047921d4e9d9c40 (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.h | 19 |
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 @@ | |||
182 | #define ENE_HW_C 2 /* 3926C */ | 182 | #define ENE_HW_C 2 /* 3926C */ |
183 | #define ENE_HW_D 3 /* 3926D or later */ | 183 | #define ENE_HW_D 3 /* 3926D or later */ |
184 | 184 | ||
185 | #define ene_printk(level, text, ...) \ | 185 | #define __dbg(level, format, ...) \ |
186 | printk(level ENE_DRIVER_NAME ": " text "\n", ## __VA_ARGS__) | 186 | do { \ |
187 | 187 | if (debug >= level) \ | |
188 | #define ene_notice(text, ...) ene_printk(KERN_NOTICE, text, ## __VA_ARGS__) | 188 | pr_debug(format "\n", ## __VA_ARGS__); \ |
189 | #define ene_warn(text, ...) ene_printk(KERN_WARNING, text, ## __VA_ARGS__) | 189 | } while (0) |
190 | |||
191 | |||
192 | #define __dbg(level, format, ...) \ | ||
193 | do { \ | ||
194 | if (debug >= level) \ | ||
195 | printk(KERN_DEBUG ENE_DRIVER_NAME \ | ||
196 | ": " format "\n", ## __VA_ARGS__); \ | ||
197 | } while (0) | ||
198 | |||
199 | 190 | ||
200 | #define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__) | 191 | #define dbg(format, ...) __dbg(1, format, ## __VA_ARGS__) |
201 | #define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__) | 192 | #define dbg_verbose(format, ...) __dbg(2, format, ## __VA_ARGS__) |