commit 53332072079ae29e323270d8b20a39b6ccc09ec5
parent 1dcab170b62af5dac3dcae0d814904196c5051ca
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 27 Dec 2021 13:29:11 -0600
hwsim: Pretty-print command name
Instead of just printing the command id, print the human readable name.
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git 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;
-
- cmd = l_genl_msg_get_command(msg);
+ uint8_t 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: