driver/ramlog: set CONFIG_SYSLOG_DEVPATH to /dev/kmsg when enbale ramglog

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-07-21 08:55:20 +00:00 committed by Xiang Xiao
parent af62e6cbfa
commit e7b8af7a35
2 changed files with 2 additions and 5 deletions

View File

@ -188,7 +188,8 @@ comment "SYSLOG channels"
config SYSLOG_DEVPATH
string "System log device"
default "/dev/ttyS1"
default "/dev/kmsg" if CONFIG_RAMLOG_SYSLOG
default "/dev/ttyS1" if !CONFIG_RAMLOG_SYSLOG
---help---
The full path to the system logging device. For the RAMLOG SYSLOG device,
this is normally "/dev/kmsg". For character SYSLOG devices, it should be

View File

@ -66,10 +66,6 @@
* CONFIG_RAMLOG_BUFSIZE - Size of the console RAM log. Default: 1024
*/
#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_SYSLOG_DEVPATH)
# define CONFIG_SYSLOG_DEVPATH "/dev/kmsg"
#endif
#ifndef CONFIG_RAMLOG_NPOLLWAITERS
# define CONFIG_RAMLOG_NPOLLWAITERS 4
#endif