diff options
author | Thomas Haller <thaller@redhat.com> | 2017-12-13 16:04:53 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-12-27 09:18:54 +0100 |
commit | fc2e4bb48f477a187f9387f89ef46b83db3d1947 (patch) | |
tree | 3735f74933f9ab8803dea1c5bbd2b4b0ac519753 | |
parent | bde3f1bd62302434814320a1ff810363c1474430 (diff) | |
download | NetworkManager-fc2e4bb48f477a187f9387f89ef46b83db3d1947.tar.gz |
wifi: don't log NULL string in create_device()
While glibc's printf is forgiving against printing NULL values,
don't do it.
-rw-r--r-- | src/devices/wifi/nm-wifi-factory.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-wifi-factory.c b/src/devices/wifi/nm-wifi-factory.c index 298b15f143..d3800469b6 100644 --- a/src/devices/wifi/nm-wifi-factory.c +++ b/src/devices/wifi/nm-wifi-factory.c @@ -110,7 +110,11 @@ create_device (NMDeviceFactory *factory, NULL); nm_strstrip (backend); - nm_log_dbg (LOGD_PLATFORM | LOGD_WIFI, "(%s) config: backend is %s, %i", iface, backend, WITH_IWD); + nm_log_dbg (LOGD_PLATFORM | LOGD_WIFI, + "(%s) config: backend is %s%s%s%s", + iface, + NM_PRINT_FMT_QUOTE_STRING (backend), + WITH_IWD ? " (iwd support enabled)" : ""); if (!backend || !strcasecmp (backend, "wpa_supplicant")) return nm_device_wifi_new (iface, capabilities); #if WITH_IWD |