summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-21 03:57:47 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-21 03:57:47 +0200
commitaddab137cd8d318e4f543ca56018ee23d51aaca9 (patch)
tree650370b8b0ad99a1c4715ba9f47b53a0d5e2f077 /src/log.c
parent8e4d105ddfd53fa146e03cee9d6fcc2e932975ac (diff)
syslog: add minimal syslog/kmsg bridge syslogd
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index 729b9ea4f6..3c42e8e517 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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;