Commit a58e95aa authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

criu/log: Define log buffer length without PAGE_SIZE

The same value, but as PAGE_SIZE can be different for the same
platform - it's no more static value.
Signed-off-by: 's avatarDmitry Safonov <dima@arista.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 657b13ea
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment