Date: | 2011-05-12 19:25:52 (12 years 10 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 9f9b8e69269b911a810faef3f97e652264bc8b1e |
Message: | IEEE 802.15.4: make debugging messages configurable The IEEE 802.15.4 protocol stack (net/ieee802154/), the corresponding SoftMAC (net/mac802154/), and the driver drivers (drivers/ieee802154/), all generate prodigious quantities of debug messages. The DEBUG option was hard-coded in the Makefiles. This patch adds a config option to each of these subsystems to allow selectively disabling the debugging output. All three options default to "yes", so existing users should see no difference in behaviour. Signed-off-by: Werner Almesberger <werner@almesberger.net> |
Files: |
drivers/ieee802154/Kconfig (1 diff) drivers/ieee802154/Makefile (1 diff) net/ieee802154/Kconfig (1 diff) net/ieee802154/Makefile (1 diff) net/mac802154/Kconfig (1 diff) net/mac802154/Makefile (1 diff) |
Change Details
drivers/ieee802154/Kconfig | ||
---|---|---|
10 | 10 | If you say N, all options in this submenu will be skipped and |
11 | 11 | disabled. |
12 | 12 | |
13 | config IEEE802154_DRIVER_DEBUG | |
14 | bool "Driver debugging messages" | |
15 | depends on IEEE802154_DRIVERS | |
16 | default y | |
17 | help | |
18 | Say Y here to make the IEEE 802.15.4 drivers generate extensive | |
19 | debugging messages. | |
20 | ||
13 | 21 | config IEEE802154_FAKEHARD |
14 | 22 | tristate "Fake LR-WPAN driver with several interconnected devices" |
15 | 23 | depends on IEEE802154_DRIVERS |
drivers/ieee802154/Makefile | ||
---|---|---|
5 | 5 | obj-$(CONFIG_IEEE802154_CC2420) += cc2420.o |
6 | 6 | obj-$(CONFIG_IEEE802154_ADF7242) += adf7242.o |
7 | 7 | |
8 | EXTRA_CFLAGS += -DDEBUG -DCONFIG_FFD | |
8 | ccflags-$(CONFIG_IEEE802154_DRIVER_DEBUG) += -DDEBUG | |
9 | ccflags-y += -DCONFIG_FFD |
net/ieee802154/Kconfig | ||
---|---|---|
10 | 10 | |
11 | 11 | Say Y here to compile LR-WPAN support into the kernel or say M to |
12 | 12 | compile it as modules. |
13 | ||
14 | config IEEE802154_PROTO_DEBUG | |
15 | bool "IEEE 802.15.4 protocol stack debugging messages" | |
16 | depends on IEEE802154 | |
17 | default y | |
18 | help | |
19 | Say Y here to make the IEEE 802.15.4 protocol stack generate | |
20 | extensive debugging messages. | |
21 |
net/ieee802154/Makefile | ||
---|---|---|
2 | 2 | ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o wpan-class.o |
3 | 3 | af_802154-y := af_ieee802154.o raw.o dgram.o |
4 | 4 | |
5 | ccflags-y += -Wall -DDEBUG | |
5 | ccflags-$(CONFIG_IEEE802154_PROTO_DEBUG) += -DDEBUG | |
6 | ccflags-y += -Wall |
net/mac802154/Kconfig | ||
---|---|---|
15 | 15 | say N here. Alternatievly you can say M to compile it as |
16 | 16 | module. |
17 | 17 | |
18 | config MAC802154_DEBUG | |
19 | bool "IEEE 802.15.4 SoftMAC debugging messages" | |
20 | depends on MAC802154 | |
21 | default y | |
22 | help | |
23 | Say Y here to make the IEEE 802.15.4 SoftMAC generate extensive | |
24 | debugging messages. |
net/mac802154/Makefile | ||
---|---|---|
2 | 2 | mac802154-objs := rx.o tx.o main.o monitor.o wpan.o mac_cmd.o scan.o mib.o \ |
3 | 3 | beacon.o beacon_hash.o smac.o |
4 | 4 | |
5 | EXTRA_CFLAGS += -Wall -DDEBUG | |
5 | ccflags-$(CONFIG_MAC802154_DEBUG) += -DDEBUG | |
6 | ccflags-y += -Wall |
Branches:
ben-wpan
ben-wpan-stefan
5396a9238205f20f811ea57898980d3ca82df0b6
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9