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:
parent
a50ae653b2
commit
10a9d9dd2d
@ -61,7 +61,9 @@ extern void print_on_level(unsigned int loglevel, const char *format, ...)
|
|||||||
__FILE__, __LINE__, ##__VA_ARGS__)
|
__FILE__, __LINE__, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define pr_warn_once(fmt, ...) \
|
#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, ...) \
|
#define pr_debug(fmt, ...) \
|
||||||
print_on_level(LOG_DEBUG, \
|
print_on_level(LOG_DEBUG, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user