* [PATCH] dev_dbg: check dev_dbg() arguments
@ 2007-04-20 20:59 Dan Williams
0 siblings, 0 replies; only message in thread
From: Dan Williams @ 2007-04-20 20:59 UTC (permalink / raw)
To: greg; +Cc: mochel, linux-kernel
Duplicate what Zach Brown did for pr_debug in commit
8b2a1fd1b394c60eaa2587716102dd5e9b4e5990
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
include/linux/device.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/include/linux/device.h b/include/linux/device.h
index 5cf30e9..b6825d0 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -554,7 +554,11 @@ extern const char *dev_driver_string(struct device *dev);
#define dev_dbg(dev, format, arg...) \
dev_printk(KERN_DEBUG , dev , format , ## arg)
#else
-#define dev_dbg(dev, format, arg...) do { (void)(dev); } while (0)
+static inline int __attribute__ ((format (printf, 2, 3)))
+dev_dbg(struct device * dev, const char * fmt, ...)
+{
+ return 0;
+}
#endif
#define dev_err(dev, format, arg...) \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-20 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 20:59 [PATCH] dev_dbg: check dev_dbg() arguments Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox