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