mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
zdtm: It's need add format to fprintf
It's need add format to fprintf to avoid following error in Ubuntu 12.04: msg.c:59:2: error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Victor Konyashkin <vkonyashkin@parallels.com> Acked-by: Andrey Vagin <avagin@openvz.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
d33d2290bd
commit
c52be774f0
@@ -56,5 +56,5 @@ void test_msg(const char *format, ...)
|
||||
off += vsnprintf(buf + off, sizeof(buf) - off, format, arg);
|
||||
va_end(arg);
|
||||
|
||||
fprintf(stderr, buf);
|
||||
fprintf(stderr, "%s", buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user