dhcp/nettools: fix format-nonliteral warning for printf in nettools_log()

../src/dhcp/nm-dhcp-nettools.c:1048:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
                    msg = g_strdup_vprintf (fmt, ap);
                                            ^~~

Fixes: 97a8785148 ('nettools: enable logging')
This commit is contained in:
Thomas Haller 2019-11-22 12:54:37 +01:00
parent b733d477e8
commit 09e5a0e805

View file

@ -1053,6 +1053,7 @@ dhcp4_event_cb (GIOChannel *source,
return G_SOURCE_CONTINUE;
}
G_GNUC_PRINTF (3, 4)
static void
nettools_log (int level, void *data, const char *fmt, ...)
{