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
1010      If you say N, all options in this submenu will be skipped and
1111      disabled.
1212
13config 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
1321config IEEE802154_FAKEHARD
1422    tristate "Fake LR-WPAN driver with several interconnected devices"
1523    depends on IEEE802154_DRIVERS
drivers/ieee802154/Makefile
55obj-$(CONFIG_IEEE802154_CC2420) += cc2420.o
66obj-$(CONFIG_IEEE802154_ADF7242) += adf7242.o
77
8EXTRA_CFLAGS += -DDEBUG -DCONFIG_FFD
8ccflags-$(CONFIG_IEEE802154_DRIVER_DEBUG) += -DDEBUG
9ccflags-y += -DCONFIG_FFD
net/ieee802154/Kconfig
1010
1111      Say Y here to compile LR-WPAN support into the kernel or say M to
1212      compile it as modules.
13
14config 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
22ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o wpan-class.o
33af_802154-y := af_ieee802154.o raw.o dgram.o
44
5ccflags-y += -Wall -DDEBUG
5ccflags-$(CONFIG_IEEE802154_PROTO_DEBUG) += -DDEBUG
6ccflags-y += -Wall
net/mac802154/Kconfig
1515      say N here. Alternatievly you can say M to compile it as
1616      module.
1717
18config 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
22mac802154-objs := rx.o tx.o main.o monitor.o wpan.o mac_cmd.o scan.o mib.o \
33            beacon.o beacon_hash.o smac.o
44
5EXTRA_CFLAGS += -Wall -DDEBUG
5ccflags-$(CONFIG_MAC802154_DEBUG) += -DDEBUG
6ccflags-y += -Wall

Archive Download the corresponding diff file



interactive