Skip to content

Commit

Permalink
virtfs-proxy-helper: Add missing printf format attribute
Browse files Browse the repository at this point in the history
Every function with printf like arguments must have it
(see file HACKING), so add it.

Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
stweil authored and Stefan Hajnoczi committed Jan 13, 2012
1 parent e7e4a6c commit c5c7d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsdev/virtfs-proxy-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c5c7d3f

Please sign in to comment.