summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f05d1c)
raw | patch | inline | side by side (parent: 4f05d1c)
author | Cédric Cabessa <ccabessa@genymobile.com> | |
Sun, 13 May 2012 15:16:06 +0000 (17:16 +0200) | ||
committer | Cédric Cabessa <ccabessa@genymobile.com> | |
Sun, 13 May 2012 15:16:06 +0000 (17:16 +0200) |
/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
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
libc/include/syslog.h | patch | blob | history |
diff --git a/libc/include/syslog.h b/libc/include/syslog.h
index d35bc79af6af5819741070e796a3b589111d0231..cb8c48cbbd1399a4757f5d77c57dd2329d710ca8 100644 (file)
--- a/libc/include/syslog.h
+++ b/libc/include/syslog.h
#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);