mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 01:00:27 +01:00
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:
parent
b733d477e8
commit
09e5a0e805
1 changed files with 1 additions and 0 deletions
|
|
@ -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, ...)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue