aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-02-05 21:09:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 17:54:59 -0500
commitefcbd3df079a6f8a8a2d5207c4e8429e02356c79 (patch)
tree6910757b12b230add2afd3b5347818ed2343b991 /include/linux/usb
parentf45ba776da4fe6c9a9eddd42b0fd5d1f15c260f3 (diff)
USB: Extend and neaten dbg macros
Add format/argument validation for #ifndef DEBUG dbg macro Neaten dbg macro definitions Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/serial.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/usb/serial.h b/include/linux/usb/serial.h
index 1819396ed501..0a458b861933 100644
--- a/include/linux/usb/serial.h
+++ b/include/linux/usb/serial.h
@@ -351,14 +351,11 @@ static inline void usb_serial_debug_data(int debug,
351 351
352/* Use our own dbg macro */ 352/* Use our own dbg macro */
353#undef dbg 353#undef dbg
354#define dbg(format, arg...) \ 354#define dbg(format, arg...) \
355 do { \ 355do { \
356 if (debug) \ 356 if (debug) \
357 printk(KERN_DEBUG "%s: " format "\n" , __FILE__ , \ 357 printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \
358 ## arg); \ 358} while (0)
359 } while (0)
360
361
362 359
363#endif /* __LINUX_USB_SERIAL_H */ 360#endif /* __LINUX_USB_SERIAL_H */
364 361