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: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Dmitry Safonov 2018-05-10 19:14:46 +01:00 committed by Andrei Vagin
parent 14c0abb1da
commit f8064a7413

View file

@ -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;