summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarmink <[email protected]>2018-11-06 11:41:44 +0800
committerarmink <[email protected]>2018-11-06 11:41:44 +0800
commit4e6f13e0da891393645d555c34bfb3dfe1e73876 (patch)
treea46083b8cb3694f89f51f00f4a1179b93bb11e97
parent1b351ff962694e041e2ae73461b2d3a22392c273 (diff)
[component] fix Kconfig warning in at and ulog.
-rw-r--r--components/net/at/Kconfig2
-rw-r--r--components/utilities/Kconfig20
2 files changed, 13 insertions, 9 deletions
diff --git a/components/net/at/Kconfig b/components/net/at/Kconfig
index 568a0301b5..a1f1b8199d 100644
--- a/components/net/at/Kconfig
+++ b/components/net/at/Kconfig
@@ -78,7 +78,7 @@ if RT_USING_AT
endif
config AT_SW_VERSION_NUM
- int
+ hex
default 0x10200
help
sfotware module version number
diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig
index c68a993ac0..db7341e7a7 100644
--- a/components/utilities/Kconfig
+++ b/components/utilities/Kconfig
@@ -54,20 +54,20 @@ config RT_USING_ULOG
if !ULOG_USING_SYSLOG
choice
prompt "The static output log level."
- default ULOG_OUTPUT_LVL_DEBUG
+ default ULOG_OUTPUT_LVL_D
help
When the log level is less than this option and it will stop output.
These log will not compile into ROM when using LOG_X api.
NOTE: It's not available on syslog mode.
- config ULOG_OUTPUT_LVL_ASSERT
+ config ULOG_OUTPUT_LVL_A
bool "Assert"
- config ULOG_OUTPUT_LVL_ERROR
+ config ULOG_OUTPUT_LVL_E
bool "Error"
- config ULOG_OUTPUT_LVL_WARNING
+ config ULOG_OUTPUT_LVL_W
bool "Warning"
- config ULOG_OUTPUT_LVL_INFO
+ config ULOG_OUTPUT_LVL_I
bool "Information"
- config ULOG_OUTPUT_LVL_DEBUG
+ config ULOG_OUTPUT_LVL_D
bool "Debug"
endchoice
endif
@@ -101,14 +101,18 @@ config RT_USING_ULOG
config ULOG_OUTPUT_LVL
int
- default 0 if ULOG_OUTPUT_LVL_ASSERT
+ default 0 if ULOG_OUTPUT_LVL_A
default 0 if ULOG_OUTPUT_LVL_EMERG
default 1 if ULOG_OUTPUT_LVL_ALERT
default 2 if ULOG_OUTPUT_LVL_CRIT
+ default 3 if ULOG_OUTPUT_LVL_E
default 3 if ULOG_OUTPUT_LVL_ERROR
+ default 4 if ULOG_OUTPUT_LVL_W
default 4 if ULOG_OUTPUT_LVL_WARNING
default 5 if ULOG_OUTPUT_LVL_NOTICE
+ default 6 if ULOG_OUTPUT_LVL_I
default 6 if ULOG_OUTPUT_LVL_INFO
+ default 7 if ULOG_OUTPUT_LVL_D
default 7 if ULOG_OUTPUT_LVL_DEBUG
default 7
@@ -220,7 +224,7 @@ config RT_USING_ULOG
default n
config ULOG_SW_VERSION_NUM
- int
+ hex
default 0x00100
help
sfotware module version number