From 53332072079ae29e323270d8b20a39b6ccc09ec5 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 27 Dec 2021 13:29:11 -0600 Subject: [PATCH] hwsim: Pretty-print command name Instead of just printing the command id, print the human readable name. --- tools/hwsim.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/hwsim.c b/tools/hwsim.c index 71e52b0f..6951062a 100644 --- a/tools/hwsim.c +++ b/tools/hwsim.c @@ -1047,11 +1047,9 @@ static void hwsim_config(struct l_genl_msg *msg, void *user_data) static void nl80211_config_notify(struct l_genl_msg *msg, void *user_data) { - uint8_t cmd; + uint8_t cmd = l_genl_msg_get_command(msg); - cmd = l_genl_msg_get_command(msg); - - l_debug("Notification of command %u", cmd); + l_debug("Config notification %s(%u)", nl80211cmd_to_string(cmd), cmd); switch (cmd) { case NL80211_CMD_NEW_WIPHY: