diff options
| author | Cédric Cabessa <ccabessa@genymobile.com> | 2012-05-13 17:16:06 +0200 |
|---|---|---|
| committer | Cédric Cabessa <ccabessa@genymobile.com> | 2012-05-13 17:16:06 +0200 |
| commit | beb349348e3df55d1d57d327fbd48fedc6073188 (patch) | |
| tree | 6c8618879bfccc1465bfd28bde34e0ff0fa307a7 /libc | |
| parent | 4f05d1c758ba141c617f25251a661ecb66627e9e (diff) | |
| download | bionic-beb349348e3df55d1d57d327fbd48fedc6073188.zip bionic-beb349348e3df55d1d57d327fbd48fedc6073188.tar.gz bionic-beb349348e3df55d1d57d327fbd48fedc6073188.tar.bz2 | |
syslog needs a valid socket path for _PATH_LOG
/dev/kmsg is a character device already used for different purposes.
Most distribution use /dev/log for _PATH_LOG but this path is already used
by logcat.
I suggest using /dev/syslog.
This change was tested with busybox's syslogd.
Change-Id: I75b428123c7a0b3ca4bea656ce06860f6f727dde
Diffstat (limited to 'libc')
| -rw-r--r-- | libc/include/syslog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/syslog.h b/libc/include/syslog.h index d35bc79..cb8c48c 100644 --- a/libc/include/syslog.h +++ b/libc/include/syslog.h @@ -98,7 +98,7 @@ struct syslog_data { #define SYSLOG_DATA_INIT {-1, 0, 0, 0, (const char *)0, LOG_USER, 0xff} -#define _PATH_LOG "/dev/kmsg" +#define _PATH_LOG "/dev/syslog" extern void closelog(void); extern void openlog(const char *, int, int); |
