Commit 6b5b2996 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

compel_print_on_level(): annotate with printf

This function works like printf, and it helps the compiler
to know that, so it can check whether arguments fit the
format string.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b1245247
......@@ -15,7 +15,8 @@ static inline int pr_quelled(unsigned int loglevel)
}
extern void compel_print_on_level(unsigned int loglevel,
const char *format, ...);
const char *format, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
#define pr_msg(fmt, ...) \
compel_print_on_level(COMPEL_LOG_MSG, \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment