mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
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:
parent
14c0abb1da
commit
f8064a7413
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue