]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ax8817x.c build fix for older gcc's
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Aug 2003 04:12:07 +0000 (21:12 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 04:12:07 +0000 (21:12 -0700)
Work around gcc-2.9x token-pasting bug by adding a space in front of the
comma.

drivers/usb/net/ax8817x.c

index 030a3a08d1fcf0fa260fb5d412cccdb6d969d00e..e51336b7ceb0ea64db12f3e04d8a241497ea110a 100644 (file)
@@ -185,19 +185,22 @@ const struct usb_device_id ax8817x_id_table[] = {
 
 MODULE_DEVICE_TABLE(usb, ax8817x_id_table);
 
+/* The space before the ", ## arg" is deliberate: gcc-2.9x needs it */
+
 #ifdef DEBUG
 #define devdbg(ax_info, fmt, arg...) \
-       printk(KERN_DEBUG "%s: " fmt "\n" , (ax_info)->net->name, ## arg)
+       printk(KERN_DEBUG "%s: " fmt "\n" , (ax_info)->net->name , ## arg)
 #else
 #define devdbg(ax_info, fmt, arg...) do {} while(0)
 #endif
 
 #define deverr(ax_info, fmt, arg...) \
-       printk(KERN_ERR "%s: " fmt "\n", (ax_info)->net->name, ## arg)
+       printk(KERN_ERR "%s: " fmt "\n", (ax_info)->net->name , ## arg)
        
 #define devinfo(ax_info, fmt, arg...) \
        do { if ((ax_info)->msg_level >= 1) \
-               printk(KERN_INFO "%s: " fmt "\n", (ax_info)->net->name, ## arg); \
+               printk(KERN_INFO "%s: " fmt "\n", \
+                       (ax_info)->net->name , ## arg); \
        } while (0)
 
 static void ax_run_ctl_queue(struct ax8817x_info *, struct ax_cmd_req *,