aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 2258d89bf523..d57661129cb2 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -608,21 +608,16 @@ extern const char *dev_driver_string(struct device *dev);
608#define dev_dbg(dev, format, arg...) \ 608#define dev_dbg(dev, format, arg...) \
609 dev_printk(KERN_DEBUG , dev , format , ## arg) 609 dev_printk(KERN_DEBUG , dev , format , ## arg)
610#else 610#else
611static inline int __attribute__ ((format (printf, 2, 3))) 611#define dev_dbg(dev, format, arg...) \
612dev_dbg(struct device *dev, const char *fmt, ...) 612 ({ if (0) dev_printk(KERN_DEBUG, dev, format, ##arg); 0; })
613{
614 return 0;
615}
616#endif 613#endif
617 614
618#ifdef VERBOSE_DEBUG 615#ifdef VERBOSE_DEBUG
619#define dev_vdbg dev_dbg 616#define dev_vdbg dev_dbg
620#else 617#else
621static inline int __attribute__ ((format (printf, 2, 3))) 618
622dev_vdbg(struct device *dev, const char *fmt, ...) 619#define dev_vdbg(dev, format, arg...) \
623{ 620 ({ if (0) dev_printk(KERN_DEBUG, dev, format, ##arg); 0; })
624 return 0;
625}
626#endif 621#endif
627 622
628/* Create alias, so I can be autoloaded. */ 623/* Create alias, so I can be autoloaded. */