Go to the documentation of this file.
24 #include <linux/kernel.h>
26 #include <linux/device.h>
30 #define dev_printk_f(level, dev, fmt, args...) \
31 dev_printk(level, dev, "%s() " fmt, __func__, ##args)
34 # define dev_dbg_f(dev, fmt, args...) \
35 dev_printk_f(KERN_DEBUG, dev, fmt, ## args)
36 # define dev_dbg_f_limit(dev, fmt, args...) do { \
37 if (net_ratelimit()) \
38 dev_printk_f(KERN_DEBUG, dev, fmt, ## args); \
40 # define dev_dbg_f_cond(dev, cond, fmt, args...) ({ \
41 bool __cond = !!(cond); \
42 if (unlikely(__cond)) \
43 dev_printk_f(KERN_DEBUG, dev, fmt, ## args); \
46 # define dev_dbg_f(dev, fmt, args...) do { (void)(dev); } while (0)
47 # define dev_dbg_f_limit(dev, fmt, args...) do { (void)(dev); } while (0)
48 # define dev_dbg_f_cond(dev, cond, fmt, args...) do { (void)(dev); } while (0)
52 # define ZD_ASSERT(x) \
54 if (unlikely(!(x))) { \
55 pr_debug("%s:%d ASSERT %s VIOLATED!\n", \
56 __FILE__, __LINE__, __stringify(x)); \
61 # define ZD_ASSERT(x) do { } while (0)
65 # define ZD_MEMCLEAR(pointer, size) memset((pointer), 0xff, (size))
67 # define ZD_MEMCLEAR(pointer, size) do { } while (0)