projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[orion] add missing kernel configuration symbol (#5564)
[openwrt.git]
/
package
/
button-hotplug
/
src
/
button-hotplug.c
diff --git
a/package/button-hotplug/src/button-hotplug.c
b/package/button-hotplug/src/button-hotplug.c
index
3b5527f
..
4bdf364
100644
(file)
--- 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"
#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 DRV_DESC "Button Hotplug driver"
#define BH_SKB_SIZE 2048
@@
-36,15
+36,19
@@
#define PFX DRV_NAME ": "
#define PFX DRV_NAME ": "
-/*#define BH_DEBUG*/
+#undef BH_DEBUG
#ifdef 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
#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 )
+
+#ifndef BIT_MASK
+#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
+#endif
struct bh_priv {
unsigned long seen[BH_BTN_COUNT];
struct bh_priv {
unsigned long seen[BH_BTN_COUNT];
This page took
0.025592 seconds
and
4
git commands to generate.