2
0
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:
Kir Kolyshkin
2017-02-13 16:59:36 -08:00
committed by Andrei Vagin
parent c1d4832d80
commit b1245247e2
8 changed files with 33 additions and 21 deletions

View File

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