[CRIU] [PATCHv4 6/8] criu/log: Define log buffer length without PAGE_SIZE
Dmitry Safonov
dima at arista.com
Thu May 10 21:14:46 MSK 2018
The same value, but as PAGE_SIZE can be different for the same
platform - it's no more static value.
Signed-off-by: Dmitry Safonov <dima at arista.com>
---
criu/log.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/criu/log.c b/criu/log.c
index 6a13266ebda7..43dcd106fd8f 100644
--- a/criu/log.c
+++ b/criu/log.c
@@ -30,10 +30,11 @@
#define DEFAULT_LOGFD STDERR_FILENO
/* Enable timestamps if verbosity is increased from default */
#define LOG_TIMESTAMP (DEFAULT_LOGLEVEL + 1)
+#define LOG_BUF_LEN (8*1024)
static unsigned int current_loglevel = DEFAULT_LOGLEVEL;
-static char buffer[PAGE_SIZE * 2];
+static char buffer[LOG_BUF_LEN];
static char buf_off = 0;
static struct timeval start;
--
2.13.6
More information about the CRIU
mailing list