patch-2.4.24 linux-2.4.24/net/irda/irnet/irnet.h
Next file: linux-2.4.24/Makefile
Previous file: linux-2.4.24/net/ipv4/netfilter/ip_fw_compat_masq.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
2004-01-05 05:53:56.000000000 -0800
- Orig file:
linux-2.4.23/net/irda/irnet/irnet.h
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.23/net/irda/irnet/irnet.h linux-2.4.24/net/irda/irnet/irnet.h
@@ -322,29 +322,29 @@
* compiler will optimise away the if() in all cases.
*/
/* All error messages (will show up in the normal logs) */
-#define DERROR(dbg, args...) \
+#define DERROR(dbg, format, args...) \
{if(DEBUG_##dbg) \
- printk(KERN_INFO "irnet: %s(): ", __FUNCTION__); printk(args);}
+ printk(KERN_INFO "irnet: %s(): " format, __FUNCTION__ , ##args);}
/* Normal debug message (will show up in /var/log/debug) */
-#define DEBUG(dbg, args...) \
+#define DEBUG(dbg, format, args...) \
{if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: %s(): ", __FUNCTION__); printk(args);}
+ printk(KERN_DEBUG "irnet: %s(): " format, __FUNCTION__ , ##args);}
/* Entering a function (trace) */
-#define DENTER(dbg, args...) \
+#define DENTER(dbg, format, args...) \
{if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: ->%s", __FUNCTION__); printk(args);}
+ printk(KERN_DEBUG "irnet: -> %s" format, __FUNCTION__ , ##args);}
/* Entering and exiting a function in one go (trace) */
-#define DPASS(dbg, args...) \
+#define DPASS(dbg, format, args...) \
{if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: <>%s", __FUNCTION__); printk(args);}
+ printk(KERN_DEBUG "irnet: <>%s" format, __FUNCTION__ , ##args);}
/* Exiting a function (trace) */
-#define DEXIT(dbg, args...) \
+#define DEXIT(dbg, format, args...) \
{if(DEBUG_##dbg) \
- printk(KERN_DEBUG "irnet: <-%s()", __FUNCTION__); printk(args);}
+ printk(KERN_DEBUG "irnet: <-%s()" format, __FUNCTION__ , ##args);}
/* Exit a function with debug */
#define DRETURN(ret, dbg, args...) \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)