2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00

log: pr_warn_once -- Fix formatting

Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov 2018-02-14 00:29:47 +03:00 committed by Andrei Vagin
parent a50ae653b2
commit 10a9d9dd2d

View File

@ -61,7 +61,9 @@ extern void print_on_level(unsigned int loglevel, const char *format, ...)
__FILE__, __LINE__, ##__VA_ARGS__)
#define pr_warn_once(fmt, ...) \
print_once(LOG_WARN, fmt, ##__VA_ARGS__)
print_once(LOG_WARN, \
"Warn (%s:%d): " LOG_PREFIX fmt, \
__FILE__, __LINE__, ##__VA_ARGS__)
#define pr_debug(fmt, ...) \
print_on_level(LOG_DEBUG, \