2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

log: Move default log-level to criu-log.h

Closer to the log-levels themselves.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov 2016-10-21 15:50:19 +03:00
parent fd23573fc4
commit 58ee7c6348
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,8 @@
#define LOG_INFO (3) /* Informative, everything is fine */
#define LOG_DEBUG (4) /* Debug only */
#define DEFAULT_LOGLEVEL LOG_WARN
extern void print_on_level(unsigned int loglevel, const char *format, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));

View File

@ -26,8 +26,6 @@ extern void simple_sprintf(char output[LOG_SIMPLE_CHUNK], const char *format, ..
extern int write_pidfile(int pid);
#define DEFAULT_LOGLEVEL LOG_WARN
#define DEFAULT_LOG_FILENAME "criu.log"
static inline int pr_quelled(unsigned int loglevel)