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
+2 -2
View File
@@ -330,7 +330,7 @@ config SYSLOG_DEVPATH
depends on SYSLOG_CHAR depends on SYSLOG_CHAR
---help--- ---help---
The full path to the system logging device. For the RAMLOG SYSLOG device, 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 some other existing character device (or file) supported by the configuration
(such as "/dev/ttyS1")/ (such as "/dev/ttyS1")/
@@ -338,7 +338,7 @@ config SYSLOG_CHARDEV
bool "SYSLOG character device" bool "SYSLOG character device"
default n default n
---help--- ---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 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 useful if, for example, you want to redirect the output of a program
to the SYSLOG. to the SYSLOG.
+1 -1
View File
@@ -163,7 +163,7 @@ FAR struct syslog_channel_s *syslog_console_channel(void);
* Name: syslog_register * Name: syslog_register
* *
* Description: * 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 * 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. * example, you want to redirect the output of a program to the SYSLOG.
* *
+2 -2
View File
@@ -85,7 +85,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
* Name: syslog_register * Name: syslog_register
* *
* Description: * 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 * 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. * 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) void syslog_register(void)
{ {
register_driver("/dev/syslog", &syslog_fops, 0222, NULL); register_driver("/dev/log", &syslog_fops, 0222, NULL);
} }
#endif /* CONFIG_SYSLOG_CHARDEV */ #endif /* CONFIG_SYSLOG_CHARDEV */
+1 -1
View File
@@ -67,7 +67,7 @@
*/ */
#if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_SYSLOG_DEVPATH) #if defined(CONFIG_RAMLOG_SYSLOG) && !defined(CONFIG_SYSLOG_DEVPATH)
# define CONFIG_SYSLOG_DEVPATH "/dev/ramlog" # define CONFIG_SYSLOG_DEVPATH "/dev/kmsg"
#endif #endif
#ifndef CONFIG_RAMLOG_NPOLLWAITERS #ifndef CONFIG_RAMLOG_NPOLLWAITERS