aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2007-04-26 03:12:10 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 13:57:34 -0400
commit404d5b185b4eb56d6fa2f7bd27833f8df1c38ce4 (patch)
tree1130df0503191529ee7088ccf3868d3be81ebc2d /include/linux/device.h
parent61a2f59af6c8ffd9d6dd53f0da32563d4434e790 (diff)
dev_dbg: check dev_dbg() arguments
Duplicate what Zach Brown did for pr_debug in commit 8b2a1fd1b394c60eaa2587716102dd5e9b4e5990 [akpm@linux-foundation.org: fix a couple of things which broke] Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 8511d14071b3..a0cd2ced31a9 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -571,7 +571,11 @@ extern const char *dev_driver_string(struct device *dev);
571#define dev_dbg(dev, format, arg...) \ 571#define dev_dbg(dev, format, arg...) \
572 dev_printk(KERN_DEBUG , dev , format , ## arg) 572 dev_printk(KERN_DEBUG , dev , format , ## arg)
573#else 573#else
574#define dev_dbg(dev, format, arg...) do { (void)(dev); } while (0) 574static inline int __attribute__ ((format (printf, 2, 3)))
575dev_dbg(struct device * dev, const char * fmt, ...)
576{
577 return 0;
578}
575#endif 579#endif
576 580
577#define dev_err(dev, format, arg...) \ 581#define dev_err(dev, format, arg...) \