Ouss4 commented on pull request #2755: URL: https://github.com/apache/incubator-nuttx/pull/2755#issuecomment-768235520
> By the way, do you know how to suppress the following messages? I'd like to see such messages only with CONFIG_DEBUG_WIRELESS_INFO=y @masayuki2009 the following could solve that: ```diff diff --git a/arch/xtensa/src/esp32/esp32_wifi_adapter.c b/arch/xtensa/src/esp32/esp32_wifi_adapter.c index cda5d937be..bdebc7263a 100644 --- a/arch/xtensa/src/esp32/esp32_wifi_adapter.c +++ b/arch/xtensa/src/esp32/esp32_wifi_adapter.c @@ -3343,6 +3343,7 @@ static uint32_t esp_rand(void) static void esp_log_writev(uint32_t level, const char *tag, const char *format, va_list args) { +#ifdef CONFIG_DEBUG_WIRELESS_INFO int pri; switch (level) @@ -3362,6 +3363,7 @@ static void esp_log_writev(uint32_t level, const char *tag, } vsyslog(pri, format, args); +#endif } /**************************************************************************** @@ -3384,10 +3386,12 @@ void esp_log_write(uint32_t level, const char *tag, const char *format, ...) { +#ifdef CONFIG_DEBUG_WIRELESS_INFO va_list list; va_start(list, format); esp_log_writev(level, tag, format, list); va_end(list); +#endif } /**************************************************************************** @@ -3997,11 +4001,13 @@ int phy_printf(const char *format, ...) int net80211_printf(const char *format, ...) { +#ifdef CONFIG_DEBUG_WIRELESS_INFO va_list arg; va_start(arg, format); vsyslog(LOG_INFO, format, arg); va_end(arg); +#endif return 0; } ``` @donghengqaz what do you think? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org