[media] ttpci: cleanup debug macros and remove dead code
Continuation lines without KERN_CONT won't work anymore. However, the way dprintk() was defined leads to the usage of continuation lines, with should be avoided when possible. So, redefine those macros. While hre, remove some dead code at av7110.c with also relies on continuation lines. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
@@ -21,8 +21,12 @@ extern int budget_debug;
|
||||
#undef dprintk
|
||||
#endif
|
||||
|
||||
#define dprintk(level,args...) \
|
||||
do { if ((budget_debug & level)) { printk("%s: %s(): ", KBUILD_MODNAME, __func__); printk(args); } } while (0)
|
||||
#define dprintk(level, fmt, arg...) do { \
|
||||
if (level & budget_debug) \
|
||||
printk(KERN_DEBUG KBUILD_MODNAME ": %s(): " fmt, \
|
||||
__func__, ##arg); \
|
||||
} while (0)
|
||||
|
||||
|
||||
struct budget_info {
|
||||
char *name;
|
||||
|
Reference in New Issue
Block a user