[PATCHv3,5/7] criu/log: Define log buffer length without PAGE_SIZE

Submitted by Dmitry Safonov on April 6, 2018, 11:40 p.m.

Details

Message ID 20180406234021.15724-6-dima@arista.com
State New
Series "Large pages support for aarch64/ppc64"
Headers show

Commit Message

Dmitry Safonov April 6, 2018, 11:40 p.m.
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@arista.com>
---
 criu/log.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/log.c b/criu/log.c
index be3e4499e7bd..2c033b919340 100644
--- a/criu/log.c
+++ b/criu/log.c
@@ -24,10 +24,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;