change /dev/syslog & /dev/ramlog for unix standard

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2021-11-23 15:55:46 +08:00 committed by Xiang Xiao
parent f3b019d1d2
commit 41c3b42468
4 changed files with 6 additions and 6 deletions

View File

@ -330,7 +330,7 @@ config SYSLOG_DEVPATH
depends on SYSLOG_CHAR
---help---
The full path to the system logging device. For the RAMLOG SYSLOG device,
this is normally "/dev/ramlog". For character SYSLOG devices, it should be
this is normally "/dev/kmsg". For character SYSLOG devices, it should be
some other existing character device (or file) supported by the configuration
(such as "/dev/ttyS1")/
@ -338,7 +338,7 @@ config SYSLOG_CHARDEV
bool "SYSLOG character device"
default n
---help---
Enables support for a simple character driver at /dev/syslog whose
Enables support for a simple character driver at /dev/log whose
write() method will transfer data to the SYSLOG device. This can be
useful if, for example, you want to redirect the output of a program
to the SYSLOG.

View File

@ -163,7 +163,7 @@ FAR struct syslog_channel_s *syslog_console_channel(void);
* Name: syslog_register
*
* Description:
* Register a simple character driver at /dev/syslog whose write() method
* Register a simple character driver at /dev/log whose write() method
* will transfer data to the SYSLOG device. This can be useful if, for
* example, you want to redirect the output of a program to the SYSLOG.
*

View File

@ -85,7 +85,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
* Name: syslog_register
*
* Description:
* Register a simple character driver at /dev/syslog whose write() method
* Register a simple character driver at /dev/log whose write() method
* will transfer data to the SYSLOG device. This can be useful if, for
* example, you want to redirect the output of a program to the SYSLOG.
*
@ -97,7 +97,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
void syslog_register(void)
{
register_driver("/dev/syslog", &syslog_fops, 0222, NULL);
register_driver("/dev/log", &syslog_fops, 0222, NULL);
}
#endif /* CONFIG_SYSLOG_CHARDEV */

View File

@ -67,7 +67,7 @@
*/
#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_SYSLOG_DEVPATH)
# define CONFIG_SYSLOG_DEVPATH "/dev/ramlog"
# define CONFIG_SYSLOG_DEVPATH "/dev/kmsg"
#endif
#ifndef CONFIG_RAMLOG_NPOLLWAITERS