summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-09 02:43:21 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-09 02:43:29 +0900
commitda94e4ddf52a56775bb8fe15cdb21f1d4b99dabe (patch)
tree99330a00a12767ecbb34cf007f122a5335e73d81
parentc65a0cf62f379e9b8fe33ab9bfe5cbcb6238cf56 (diff)
downloadsystemd-da94e4ddf52a56775bb8fe15cdb21f1d4b99dabe.tar.gz
network: wifi: ssid may be NULL
This fixes the following log message: systemd-networkd[888]: wlan0: nl80211: received new_interface(7) message: iftype=station, ssid=(null)
-rw-r--r--src/network/networkd-wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-wifi.c b/src/network/networkd-wifi.c
index f1d5c7d8d4..8fd1cf5039 100644
--- a/src/network/networkd-wifi.c
+++ b/src/network/networkd-wifi.c
@@ -130,7 +130,7 @@ int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *me
log_link_debug(link, "nl80211: received %s(%u) message: iftype=%s, ssid=%s",
strna(nl80211_cmd_to_string(cmd)), cmd,
- strna(nl80211_iftype_to_string(wlan_iftype)), ssid);
+ strna(nl80211_iftype_to_string(wlan_iftype)), strna(ssid));
switch(cmd) {
case NL80211_CMD_SET_INTERFACE: