summaryrefslogtreecommitdiff
path: root/drivers/media/pci/ttpci/budget.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-14 13:58:43 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-18 14:40:43 +0300
commita80e1d965cb9a77f20a493021e816761f8785faf (patch)
treea76dbb95a5da03e6c3def9d7911f94b9bcda4df4 /drivers/media/pci/ttpci/budget.h
parent61fc87498bc6a5becd30162e23928168b1e32318 (diff)
downloadlinux-a80e1d965cb9a77f20a493021e816761f8785faf.tar.xz
[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>
Diffstat (limited to 'drivers/media/pci/ttpci/budget.h')
-rw-r--r--drivers/media/pci/ttpci/budget.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/pci/ttpci/budget.h b/drivers/media/pci/ttpci/budget.h
index 655eef5236ca..d5ae4438153e 100644
--- a/drivers/media/pci/ttpci/budget.h
+++ b/drivers/media/pci/ttpci/budget.h
@@ -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;