From patchwork Fri Jan 13 10:51:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [11/12] virtfs-proxy-helper: Add missing printf format attribute From: Stefan Hajnoczi X-Patchwork-Id: 135788 Message-Id: <1326451900-18325-12-git-send-email-stefanha@linux.vnet.ibm.com> To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi Date: Fri, 13 Jan 2012 10:51:39 +0000 From: Stefan Weil 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 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 21e9b16..4a507d8 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;