From c5c7d3f0a79a977955e9df436cf9ca17269b8783 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 11 Jan 2012 19:47:37 +0100 Subject: virtfs-proxy-helper: Add missing printf format attribute Every function with printf like arguments must have it (see file HACKING), so add it. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- fsdev/virtfs-proxy-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 21e9b160c2..4a507d860e 100644 --- a/fsdev/virtfs-proxy-helper.c +++ b/fsdev/virtfs-proxy-helper.c @@ -54,7 +54,7 @@ static struct option helper_opts[] = { static bool is_daemon; static bool get_version; /* IOC getversion IOCTL supported */ -static void do_log(int loglevel, const char *format, ...) +static void GCC_FMT_ATTR(2, 3) do_log(int loglevel, const char *format, ...) { va_list ap; -- cgit v1.2.3