From 10a9d9dd2d6ebb5979f2e8b4e0e478bd50b8c310 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 14 Feb 2018 00:29:47 +0300 Subject: [PATCH] log: pr_warn_once -- Fix formatting Signed-off-by: Cyrill Gorcunov Signed-off-by: Andrei Vagin --- criu/include/log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/criu/include/log.h b/criu/include/log.h index 9c4c28386..797be1bb2 100644 --- a/criu/include/log.h +++ b/criu/include/log.h @@ -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, \