[package] button-hotplug: fix compile warnings
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 26 Jul 2008 16:32:12 +0000 (16:32 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 26 Jul 2008 16:32:12 +0000 (16:32 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11937 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/button-hotplug/src/button-hotplug.c

index 3b5527fcf2f9d862376a5ad8ea770d1a362b0ad9..f76b9277fdcc89ba58b0de5c93aa6229d19674b5 100644 (file)
@@ -24,7 +24,7 @@
 #include <net/sock.h>
 
 #define DRV_NAME       "button-hotplug"
-#define DRV_VERSION    "0.3.0"
+#define DRV_VERSION    "0.3.1"
 #define DRV_DESC       "Button Hotplug driver"
 
 #define BH_SKB_SIZE    2048
 
 #define PFX    DRV_NAME ": "
 
-/*#define BH_DEBUG*/
+#undef BH_DEBUG
 
 #ifdef BH_DEBUG
-#define BH_DBG(fmt, args...) printk(KERN_DEBUG "%s" fmt, ##args )
+#define BH_DBG(fmt, args...) printk(KERN_DEBUG "%s: " fmt, DRV_NAME, ##args )
 #else
 #define BH_DBG(fmt, args...) do {} while (0)
 #endif
 
-#define BH_ERR(fmt, args...) printk(KERN_ERR "%s" fmt, ##args )
+#define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args )
 
 struct bh_priv {
        unsigned long           seen[BH_BTN_COUNT];