Skip to content

Commit 9e7dca6

Browse files
author
krishna T
committed
Use unbuffered logging for debugs
WPA supplicant debugs are excessive and the incoming rate is high esp. during connection, so, even though we increase the log buffer size, we still miss quite a few events. So, disable buffered logging for debugs, one caveat is that we lose the timestamp that comes with LOG_ macros and also the prints might be jumbled but this is still preferred over losing events. Signed-off-by: Krishna T <[email protected]>
1 parent ec738bf commit 9e7dca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr/src/utils/wpa_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void wpa_printf_impl(int level, const char *fmt, ...)
5454
case MSG_DEBUG:
5555
case MSG_MSGDUMP:
5656
case MSG_EXCESSIVE:
57-
LOG_DBG("%s", buffer);
57+
printf("%s\n", buffer);
5858
break;
5959
default:
6060
break;

0 commit comments

Comments
 (0)