mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 21:31:51 +00:00
dev_dbg: check dev_dbg() arguments
Duplicate what Zach Brown did for pr_debug in commit
8b2a1fd1b3
[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>
This commit is contained in:
parent
61a2f59af6
commit
404d5b185b
3 changed files with 6 additions and 10 deletions
|
@ -571,7 +571,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...) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue