From: Jouni Malinen Date: Thu, 1 Sep 2011 15:16:37 +0000 (+0300) Subject: Reduce debug verbosity on global ctrl_iface PING command X-Git-Tag: hostap-1-bp~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4a0a82ca60b8e9468a818d52f53b7c73e4c4b96;p=thirdparty%2Fhostap.git Reduce debug verbosity on global ctrl_iface PING command This matches with the earlier change that did the same for the per-interface ctrl_iface commands. --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 730e6078c..b58d40d7e 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -3490,8 +3490,11 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global, char *reply; const int reply_size = 2048; int reply_len; + int level = MSG_DEBUG; - wpa_hexdump_ascii(MSG_DEBUG, "RX global ctrl_iface", + if (os_strcmp(buf, "PING") == 0) + level = MSG_EXCESSIVE; + wpa_hexdump_ascii(level, "RX global ctrl_iface", (const u8 *) buf, os_strlen(buf)); reply = os_malloc(reply_size);