]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Print control interface commands in easier format
authorJouni Malinen <j@w1.fi>
Sun, 23 Sep 2012 22:01:26 +0000 (01:01 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Sep 2012 22:01:26 +0000 (01:01 +0300)
The ASCII hexdump is somewhat difficult to search for (especially on
Android builds), so make the debug log easier to parse by printing the
full control interface command as a text string. In addition, use
wpa_dbg() to get the interface name printed so that multi-interface
cases can be debugged.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c

index 51b6fdb1f2a44d9332f9b01e503ba0763a742150..18cf4b3bc35e556d290f8500ba269213c7cb285b 100644 (file)
@@ -4360,6 +4360,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
                        level = MSG_EXCESSIVE;
                wpa_hexdump_ascii(level, "RX ctrl_iface",
                                  (const u8 *) buf, os_strlen(buf));
+               wpa_dbg(wpa_s, level, "Control interface command '%s'", buf);
        }
 
        reply = os_malloc(reply_size);