The IEEE 802.15.4 SoftMAC (net/mac802154/) generates a lot of debugging messages.
The DEBUG option was hard-coded in the Makefile. This patch adds a config option (defaulting to "yes") to allow selectively disabling the debugging output. Signed-off-by: Werner Almesberger <wer...@almesberger.net> --- net/mac802154/Kconfig | 7 +++++++ net/mac802154/Makefile | 3 ++- 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/net/mac802154/Kconfig b/net/mac802154/Kconfig index 61a3287..32e63bc 100644 --- a/net/mac802154/Kconfig +++ b/net/mac802154/Kconfig @@ -15,3 +15,10 @@ config MAC802154 say N here. Alternatievly you can say M to compile it as module. +config MAC802154_DEBUG + bool "IEEE 802.15.4 SoftMAC debugging messages" + depends on MAC802154 + default y + help + Say Y here to make the IEEE 802.15.4 SoftMAC generate extensive + debugging messages. diff --git a/net/mac802154/Makefile b/net/mac802154/Makefile index 790b97f..d76fabb 100644 --- a/net/mac802154/Makefile +++ b/net/mac802154/Makefile @@ -2,4 +2,5 @@ obj-$(CONFIG_MAC802154) += mac802154.o mac802154-objs := rx.o tx.o main.o monitor.o wpan.o mac_cmd.o scan.o mib.o \ beacon.o beacon_hash.o smac.o -EXTRA_CFLAGS += -Wall -DDEBUG +ccflags-$(CONFIG_MAC802154_DEBUG) += -DDEBUG +ccflags-y += -Wall -- 1.7.0.4 ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel