From ba70c3d8851f5af2110b1a8b5228c400014f5693 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 13 Jun 2007 21:11:42 -0400 Subject: [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 --- at76_usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'at76_usb.h') 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) \ -- cgit v1.2.3