aboutsummaryrefslogtreecommitdiff
path: root/at76_usb.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2007-06-13 21:11:42 -0400
committerGuido Guenther <agx@sigxcpu.org>2007-06-14 10:11:09 +0200
commitba70c3d8851f5af2110b1a8b5228c400014f5693 (patch)
tree00af551684b384515f45b33a6c63b1c667cfcb1f /at76_usb.h
parent4378f631f40b2f9186f2169119f052eae88ad565 (diff)
[PATCH] Improve info messages, avoid printing full path
Never use __FILE__, as it prints full path to the driver, which is rarely needed. Use DRIVER_NAME instead. Replace all occurrences of info() with printk() calls. Ensure that the messages are properly formatted and use the netdevice name if possible. Print MAC address, firmware version and regulatory domain after the device is registered, so we can provide the device name. Signed-off-by: Pavel Roskin <proski@gnu.org>
Diffstat (limited to 'at76_usb.h')
-rw-r--r--at76_usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/at76_usb.h b/at76_usb.h
index aeabc4a..9a8c327 100644
--- a/at76_usb.h
+++ b/at76_usb.h
@@ -682,7 +682,7 @@ struct at76_rx_radiotap {
#define at76_dbg(bits, format, arg...) \
do { \
if (at76_debug & (bits)) \
- printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg);\
+ printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , ## arg);\
} while (0)
#define at76_assert(x) \