Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Use unbuffered logging for debugs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
krishna T committed May 8, 2023
1 parent ec738bf commit 7c414d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions zephyr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,4 @@ config WPA_SUPP_DEBUG_LEVEL
available levels and functions for emitting the messages. Note that
runtime filtering can also be configured in addition to the compile-time
filtering.

# Debug logs need more buffer space
config LOG_BUFFER_SIZE
default 4096 if WPA_SUPP_LOG_LEVEL_DBG
default 2048
endif
2 changes: 1 addition & 1 deletion zephyr/src/utils/wpa_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void wpa_printf_impl(int level, const char *fmt, ...)
case MSG_DEBUG:
case MSG_MSGDUMP:
case MSG_EXCESSIVE:
LOG_DBG("%s", buffer);
printf("%s\n", buffer);
break;
default:
break;
Expand Down

0 comments on commit 7c414d4

Please sign in to comment.