aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2008-03-13 14:51:42 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-25 00:16:42 -0400
commitf66396b55d4016bdc7a5298db7a681c63b649bf4 (patch)
treea0e7e70ee51a0eb46b605abde8830857ec353fe9 /include/linux
parentff66e3ce3524125106be3ff18104ecde0849b85c (diff)
USB: usb.h: reduce syslog clutter [v3]
The the err() / info() / warn() macros in usb.h inserted __FILE__ at the beginning of the message, which expands to the complete pathname of the source file within the kernel tree, frequently taking up half of an 80 character screen line before the actual message even begins. Use the module name instead. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 285011d9af17..dd9733cc0ac2 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -1701,13 +1701,12 @@ extern void usb_unregister_notify(struct notifier_block *nb);
1701#define dbg(format, arg...) do {} while (0) 1701#define dbg(format, arg...) do {} while (0)
1702#endif 1702#endif
1703 1703
1704#define err(format, arg...) printk(KERN_ERR "%s: " format "\n" , \ 1704#define err(format, arg...) printk(KERN_ERR KBUILD_MODNAME ": " \
1705 __FILE__ , ## arg) 1705 format "\n" , ## arg)
1706#define info(format, arg...) printk(KERN_INFO "%s: " format "\n" , \ 1706#define info(format, arg...) printk(KERN_INFO KBUILD_MODNAME ": " \
1707 __FILE__ , ## arg) 1707 format "\n" , ## arg)
1708#define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n" , \ 1708#define warn(format, arg...) printk(KERN_WARNING KBUILD_MODNAME ": " \
1709 __FILE__ , ## arg) 1709 format "\n" , ## arg)
1710
1711 1710
1712#endif /* __KERNEL__ */ 1711#endif /* __KERNEL__ */
1713 1712