From 88593cead8b926710853c72d9590d4b05ca228d7 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Mon, 9 May 2016 21:37:26 +0000 Subject: [PATCH] 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 --- src/lxc/log.c | 2 -- src/lxc/log.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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__) -- 2.47.2