From: Tycho Andersen Date: Mon, 9 May 2016 21:37:26 +0000 (+0000) Subject: log: remove duplicate definitons and bump buffer size X-Git-Tag: lxc-2.1.0~424^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1017%2Fhead;p=thirdparty%2Flxc.git log: remove duplicate definitons and bump buffer size When writing out the CRIU exec command, we're bumping up against the buffer size limit. Let's increase it so we can avoid: lxc 20160509213229.921 WARN lxc_log - log.c:log_append_logfile:111 - truncated next event from 523 to 512 bytes Signed-off-by: Tycho Andersen --- diff --git a/src/lxc/log.c b/src/lxc/log.c index 55fa7f5b9..11d4bbfb5 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -40,8 +40,6 @@ #include "caps.h" #include "utils.h" -#define LXC_LOG_PREFIX_SIZE 32 -#define LXC_LOG_BUFFER_SIZE 512 #define LXC_LOG_DATEFOMAT_SIZE 15 int lxc_log_fd = -1; diff --git a/src/lxc/log.h b/src/lxc/log.h index 76bd4df3d..eb330d0b1 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -44,7 +44,7 @@ #endif #define LXC_LOG_PREFIX_SIZE 32 -#define LXC_LOG_BUFFER_SIZE 512 +#define LXC_LOG_BUFFER_SIZE 1024 /* This attribute is required to silence clang warnings */ #if defined(__GNUC__)