]> git.proxmox.com Git - qemu.git/commitdiff
virtfs-proxy-helper: Add missing printf format attribute
authorStefan Weil <sw@weilnetz.de>
Wed, 11 Jan 2012 18:47:37 +0000 (19:47 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 13 Jan 2012 10:37:00 +0000 (10:37 +0000)
Every function with printf like arguments must have it
(see file HACKING), so add it.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
fsdev/virtfs-proxy-helper.c

index 21e9b160c23c9de35a556a1c1f1698f14d4f76d0..4a507d860e167ea42dbd995ee0fe73ab86cf82a9 100644 (file)
@@ -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;