patch-2.4.23 linux-2.4.23/net/irda/irnet/irnet.h

Next file: linux-2.4.23/net/irda/irqueue.c
Previous file: linux-2.4.23/net/irda/irlmp_frame.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/net/irda/irnet/irnet.h linux-2.4.23/net/irda/irnet/irnet.h
@@ -324,27 +324,27 @@
 /* All error messages (will show up in the normal logs) */
 #define DERROR(dbg, args...) \
 	{if(DEBUG_##dbg) \
-		printk(KERN_INFO "irnet: " __FUNCTION__ "(): " args);}
+		printk(KERN_INFO "irnet: %s(): ", __FUNCTION__); printk(args);}
 
 /* Normal debug message (will show up in /var/log/debug) */
 #define DEBUG(dbg, args...) \
 	{if(DEBUG_##dbg) \
-		printk(KERN_DEBUG "irnet: " __FUNCTION__ "(): " args);}
+		printk(KERN_DEBUG "irnet: %s(): ", __FUNCTION__); printk(args);}
 
 /* Entering a function (trace) */
 #define DENTER(dbg, args...) \
 	{if(DEBUG_##dbg) \
-		printk(KERN_DEBUG "irnet: ->" __FUNCTION__ args);}
+	printk(KERN_DEBUG "irnet: ->%s", __FUNCTION__); printk(args);}
 
 /* Entering and exiting a function in one go (trace) */
 #define DPASS(dbg, args...) \
 	{if(DEBUG_##dbg) \
-		printk(KERN_DEBUG "irnet: <>" __FUNCTION__ args);}
+		printk(KERN_DEBUG "irnet: <>%s", __FUNCTION__); printk(args);}
 
 /* Exiting a function (trace) */
 #define DEXIT(dbg, args...) \
 	{if(DEBUG_##dbg) \
-		printk(KERN_DEBUG "irnet: <-" __FUNCTION__ "()" args);}
+		printk(KERN_DEBUG "irnet: <-%s()", __FUNCTION__); printk(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)