Skip to contentSkip to conversation

virtfs-proxy-helper: Add missing printf format attribute

PATCH Applied Stefan Weil 2 participants 2 messages Jan 11, 2012 – Jan 12, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtfs-proxy-helper: Add missing printf format attribute

Every function with printf like arguments must have it (see file HACKING), so add it.

---
 fsdev/virtfs-proxy-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fsdev/virtfs-proxy-helper.c +1 -1
index 21e9b16..4a507d8 100644
@@ -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;
 
Signature · 1 line
1.7.2.5