mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 15:25:21 +00:00
compel/uapi: add prefix to log levels
These are part of compel UAPI so should be prefixed with COMPEL_ in order to not pollute the namespace. While at it, move from set of defines to an enum, which looks a bit cleaner. Also, kill LOG_UNDEF as it's not used anywhere. Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
c1d4832d80
commit
b1245247e2
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "common/bitsperlong.h"
|
||||
#include <compel/plugins/std/syscall.h>
|
||||
#include "uapi/std/string.h"
|
||||
#include <compel/plugins/std/string.h>
|
||||
#include <compel/plugins/std/log.h>
|
||||
#include <compel/loglevels.h>
|
||||
|
||||
@@ -14,7 +14,7 @@ struct simple_buf {
|
||||
};
|
||||
|
||||
static int logfd = -1;
|
||||
static int cur_loglevel = DEFAULT_LOGLEVEL;
|
||||
static int cur_loglevel = COMPEL_DEFAULT_LOGLEVEL;
|
||||
static struct timeval start;
|
||||
|
||||
static void sbuf_log_flush(struct simple_buf *b);
|
||||
|
Reference in New Issue
Block a user