diff --git a/drivers/syslog/Kconfig b/drivers/syslog/Kconfig index ba00c0f83c..9bf064d164 100644 --- a/drivers/syslog/Kconfig +++ b/drivers/syslog/Kconfig @@ -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 diff --git a/include/nuttx/syslog/ramlog.h b/include/nuttx/syslog/ramlog.h index 1efab7c878..332959b67b 100644 --- a/include/nuttx/syslog/ramlog.h +++ b/include/nuttx/syslog/ramlog.h @@ -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