From b470b2bf37ddf3730be94c62eb52812c4485e43c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 24 Sep 2012 01:01:26 +0300 Subject: [PATCH] Print control interface commands in easier format 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 --- wpa_supplicant/ctrl_iface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 51b6fdb1f..18cf4b3bc 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -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);