Skip to content

Commit 67c465d

Browse files
gsaucedoAndrew Boie
authored and
Andrew Boie
committed
sys_log: replace old debug macros at ieee802154 driver
ieee802154 driver is now using new system log macros, update the Kconfig variable to be a level rather than a bool and the .conf files at samples. JIRA: ZEP-311 Change-Id: I640e973d880c3a222cd7c13a72d35edf49ada3a8 Signed-off-by: Genaro Saucedo Tejada <[email protected]>
1 parent 54bfc3c commit 67c465d

File tree

5 files changed

+89
-85
lines changed

5 files changed

+89
-85
lines changed

drivers/ieee802154/Kconfig

+17-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,24 @@ depends on NETWORKING_WITH_15_4
3838

3939
if NETWORKING_WITH_15_4_TI_CC2520
4040

41-
config TI_CC2520_DEBUG
42-
bool "CC2520 driver debug"
43-
default n
41+
config SYS_LOG_TI_CC2520_LEVEL
42+
int
43+
prompt "CC2520 driver log level"
44+
default 0
4445
help
45-
This option enables debug support for 802.15.4 CC2520 driver.
46+
Sets log level for 802.15.4 CC2520 driver.
47+
48+
Levels are:
49+
50+
- 0 OFF, do not write
51+
52+
- 1 ERROR, only write SYS_LOG_ERR
53+
54+
- 2 WARNING, write SYS_LOG_WRN in adition to previous level
55+
56+
- 3 INFO, write SYS_LOG_INF in adition to previous levels
57+
58+
- 4 DEBUG, write SYS_LOG_DBG in adition to previous levels
4659

4760
config TI_CC2520_DRV_NAME
4861
string "TI CC2520 Driver's name"

0 commit comments

Comments
 (0)