mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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:
parent
c1d4832d80
commit
b1245247e2
8 changed files with 33 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue