diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-21 03:57:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-21 03:57:47 +0200 |
commit | addab137cd8d318e4f543ca56018ee23d51aaca9 (patch) | |
tree | 650370b8b0ad99a1c4715ba9f47b53a0d5e2f077 /src/log.c | |
parent | 8e4d105ddfd53fa146e03cee9d6fcc2e932975ac (diff) |
syslog: add minimal syslog/kmsg bridge syslogd
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -32,7 +32,6 @@ #include "macro.h" #define SYSLOG_TIMEOUT_USEC (5*USEC_PER_SEC) -#define LOG_BUFFER_MAX 1024 static LogTarget log_target = LOG_TARGET_CONSOLE; static int log_max_level = LOG_INFO; @@ -417,7 +416,7 @@ int log_meta( const char *func, const char *format, ...) { - char buffer[LOG_BUFFER_MAX]; + char buffer[LINE_MAX]; int saved_errno, r; va_list ap; @@ -444,7 +443,7 @@ void log_assert( const char *func, const char *format, ...) { - static char buffer[LOG_BUFFER_MAX]; + static char buffer[LINE_MAX]; int saved_errno = errno; va_list ap; |