summaryrefslogtreecommitdiff
path: root/package/button-hotplug/src
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-07-26 16:32:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-07-26 16:32:12 +0000
commit3035d2e7c9f8c2c8be7ef3c01170a24981d2a6e6 (patch)
tree0af006e5cc9efa0e01efe270eb7766cd10c5bdbe /package/button-hotplug/src
parent3e0a2d06152f02cd5517753153ecae7e62bdacb1 (diff)
downloadmtk-20170518-3035d2e7c9f8c2c8be7ef3c01170a24981d2a6e6.zip
mtk-20170518-3035d2e7c9f8c2c8be7ef3c01170a24981d2a6e6.tar.gz
mtk-20170518-3035d2e7c9f8c2c8be7ef3c01170a24981d2a6e6.tar.bz2
button-hotplug: fix compile warnings
SVN-Revision: 11937
Diffstat (limited to 'package/button-hotplug/src')
-rw-r--r--package/button-hotplug/src/button-hotplug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/button-hotplug/src/button-hotplug.c b/package/button-hotplug/src/button-hotplug.c
index 3b5527f..f76b927 100644
--- a/package/button-hotplug/src/button-hotplug.c
+++ b/package/button-hotplug/src/button-hotplug.c
@@ -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
@@ -36,15 +36,15 @@
#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];