]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Write event name in debug log for ignored events
authorJouni Malinen <j@w1.fi>
Sat, 25 May 2019 18:37:23 +0000 (21:37 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 May 2019 18:37:23 +0000 (21:37 +0300)
This makes it easier to understand debug logs from systems that have
multiple interfaces.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211_event.c

index 7abbafcd826b0853fe594719c68d6e8f27827885..f57ada9c8b223eb7533dac92a5edd859fc4cd0bf 100644 (file)
@@ -2648,8 +2648,9 @@ int process_global_event(struct nl_msg *msg, void *arg)
                        }
                }
                wpa_printf(MSG_DEBUG,
-                          "nl80211: Ignored event (cmd=%d) for foreign interface (ifindex %d wdev 0x%llx)",
-                          gnlh->cmd, ifidx, (long long unsigned int) wdev_id);
+                          "nl80211: Ignored event %d (%s) for foreign interface (ifindex %d wdev 0x%llx)",
+                          gnlh->cmd, nl80211_command_to_string(gnlh->cmd),
+                          ifidx, (long long unsigned int) wdev_id);
        }
 
        return NL_SKIP;