72332c
From f8064a7413a0a66ebe7afc8c19e2678b62177b9d Mon Sep 17 00:00:00 2001
72332c
From: Dmitry Safonov <dima@arista.com>
72332c
Date: Thu, 10 May 2018 19:14:46 +0100
72332c
Subject: [PATCH 6/8] criu/log: Define log buffer length without PAGE_SIZE
72332c
72332c
The same value, but as PAGE_SIZE can be different for the same
72332c
platform - it's no more static value.
72332c
72332c
Signed-off-by: Dmitry Safonov <dima@arista.com>
72332c
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
72332c
---
72332c
 criu/log.c | 3 ++-
72332c
 1 file changed, 2 insertions(+), 1 deletion(-)
72332c
72332c
diff --git a/criu/log.c b/criu/log.c
72332c
index 6a13266eb..43dcd106f 100644
72332c
--- a/criu/log.c
72332c
+++ b/criu/log.c
72332c
@@ -30,10 +30,11 @@
72332c
 #define DEFAULT_LOGFD		STDERR_FILENO
72332c
 /* Enable timestamps if verbosity is increased from default */
72332c
 #define LOG_TIMESTAMP		(DEFAULT_LOGLEVEL + 1)
72332c
+#define LOG_BUF_LEN		(8*1024)
72332c
 
72332c
 static unsigned int current_loglevel = DEFAULT_LOGLEVEL;
72332c
 
72332c
-static char buffer[PAGE_SIZE * 2];
72332c
+static char buffer[LOG_BUF_LEN];
72332c
 static char buf_off = 0;
72332c
 
72332c
 static struct timeval start;
72332c
-- 
72332c
2.17.0
72332c