You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/23 15:08:40 UTC

[incubator-nuttx] 02/04: drivers/syslog: Rename SYSLOG_NONE to SYSLOG_DEFAULT

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch pr360
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 179d9a9f0df5fd8a1bfa39ad157cf7380e7e05cd
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Feb 23 00:15:59 2020 +0800

    drivers/syslog: Rename SYSLOG_NONE to SYSLOG_DEFAULT
    
    since syslog still output if ARCH_LOWPUTC == y and
    select the default syslog device by ARCH_LOWPUTC
    
    Change-Id: I184e52d1e63c84d6b6c9d07c7d777187f8852be5
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 drivers/syslog/Kconfig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/syslog/Kconfig b/drivers/syslog/Kconfig
index 0e18d32..87e4fe2 100644
--- a/drivers/syslog/Kconfig
+++ b/drivers/syslog/Kconfig
@@ -128,8 +128,8 @@ config SYSLOG_PREFIX_STRING
 
 choice
 	prompt "System log device"
-	default SYSLOG_CONSOLE if DEV_CONSOLE
-	default SYSLOG_NONE if !DEV_CONSOLE
+	default SYSLOG_CONSOLE if !ARCH_LOWPUTC
+	default SYSLOG_DEFAULT if ARCH_LOWPUTC
 	depends on !ARCH_SYSLOG
 
 config SYSLOG_CHAR
@@ -164,11 +164,11 @@ config SYSLOG_RPMSG
 	---help---
 		Use the rpmsg as a SYSLOG output device, send message to remote proc.
 
-config SYSLOG_NONE
-	bool "No SYSLOG device"
+config SYSLOG_DEFAULT
+	bool "Default SYSLOG device"
 	---help---
 		syslog() interfaces will be present, but all output will go to the
-		bit-bucket.
+		up_putc(ARCH_LOWPUTC == y) or bit-bucket(ARCH_LOWPUTC == n).
 
 endchoice