[CRIU] [PATCH] Add pr_info_once()
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Apr 5 06:22:06 PDT 2016
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/include/criu-log.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/criu/include/criu-log.h b/criu/include/criu-log.h
index fd5d634..ed9d7d8 100644
--- a/criu/include/criu-log.h
+++ b/criu/include/criu-log.h
@@ -57,6 +57,8 @@ extern void print_on_level(unsigned int loglevel, const char *format, ...)
#define pr_info(fmt, ...) \
print_on_level(LOG_INFO, \
LOG_PREFIX fmt, ##__VA_ARGS__)
+#define pr_info_once(fmt, ...) \
+ print_once(LOG_INFO, fmt, ##__VA_ARGS__)
#define pr_err(fmt, ...) \
print_on_level(LOG_ERROR, \
More information about the CRIU
mailing list