|
@@ -377,6 +377,15 @@ static inline char *pack_hex_byte(char *buf, u8 byte)
|
|
#define pr_cont(fmt, ...) \
|
|
#define pr_cont(fmt, ...) \
|
|
printk(KERN_CONT fmt, ##__VA_ARGS__)
|
|
printk(KERN_CONT fmt, ##__VA_ARGS__)
|
|
|
|
|
|
|
|
+/* pr_devel() should produce zero code unless DEBUG is defined */
|
|
|
|
+#ifdef DEBUG
|
|
|
|
+#define pr_devel(fmt, ...) \
|
|
|
|
+ printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
|
|
|
|
+#else
|
|
|
|
+#define pr_devel(fmt, ...) \
|
|
|
|
+ ({ if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); 0; })
|
|
|
|
+#endif
|
|
|
|
+
|
|
/* If you are writing a driver, please use dev_dbg instead */
|
|
/* If you are writing a driver, please use dev_dbg instead */
|
|
#if defined(DEBUG)
|
|
#if defined(DEBUG)
|
|
#define pr_debug(fmt, ...) \
|
|
#define pr_debug(fmt, ...) \
|