summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-09-10 11:19:44 +0300
committerJouni Malinen <j@w1.fi>2015-09-10 11:19:44 +0300
commit43fa110b0b6cc5f6db88497bcdbfae057bbe4d5b (patch)
treef7ef3c9185ce68d627ba6aefbf752d875ccb4898
parent8db9a79d414d15073592f92ba0056d6e3c0e6703 (diff)
downloadhostap-43fa110b0b6cc5f6db88497bcdbfae057bbe4d5b.tar.gz
Drop some control interface debug print verbosity for send operations
These prints were at DEBUG level (-d), but they can be very frequent, so drop them to MSGDUMP (-dd). This allows the prints to be suppressed in common debugging cases while still leaving them easily enablable to debug control interface issues without having to enable excessive debugging. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index b6d524607..e1c4639a2 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -82,7 +82,7 @@ static void wpas_ctrl_sock_debug(const char *title, int sock, const char *buf,
#ifdef __linux__
socklen_t optlen;
int sndbuf, outq;
- int level = MSG_DEBUG;
+ int level = MSG_MSGDUMP;
if (len >= 5 && os_strncmp(buf, "PONG\n", 5) == 0)
level = MSG_EXCESSIVE;
@@ -750,7 +750,8 @@ static void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s,
msg.msg_namelen = dst->addrlen;
wpas_ctrl_sock_debug("ctrl_sock-sendmsg", sock, buf, len);
if (sendmsg(sock, &msg, MSG_DONTWAIT) >= 0) {
- wpa_printf(MSG_DEBUG, "CTRL_IFACE monitor sent successfully to %s",
+ wpa_printf(MSG_MSGDUMP,
+ "CTRL_IFACE monitor sent successfully to %s",
addr_txt);
dst->errors = 0;
continue;