wifi: don't log NULL string in create_device()

While glibc's printf is forgiving against printing NULL values,
don't do it.
This commit is contained in:
Thomas Haller 2017-12-13 16:04:53 +01:00
parent bde3f1bd62
commit fc2e4bb48f

View file

@ -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