ports/net/wpa_gui/files/patch-src_common_wpa__ctrl.c
Jason E. Hale a4a67c8d18 Add qt4-imageformats runtime dependency so tray icon appears
While here:
Remake patches with "make makepatch"

PR:		213783
Submitted by:	<rs.os@t-online.de>
2016-11-03 09:18:03 +00:00

23 lines
568 B
C

--- src/common/wpa_ctrl.c.orig 2015-09-27 19:02:05 UTC
+++ src/common/wpa_ctrl.c
@@ -477,6 +477,10 @@ int wpa_ctrl_request(struct wpa_ctrl *ct
char *cmd_buf = NULL;
size_t _cmd_len;
+#ifndef QT_NO_DEBUG
+ fprintf(stderr, "CMD-SEND: %*s\n", cmd_len, cmd);
+#endif // QT_NO_DEBUG
+
#ifdef CONFIG_CTRL_IFACE_UDP
if (ctrl->cookie) {
char *pos;
@@ -554,6 +558,9 @@ retry_send:
continue;
}
*reply_len = res;
+#ifndef QT_NO_DEBUG
+ fprintf(stderr, "CMD-RECV: %*s\n", *reply_len, reply);
+#endif // QT_NO_DEBUG
break;
} else {
return -2;