From 75bc489e248f99e1deeb813fb2cf9ad3f4e4c4ce Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 17 Dec 2020 16:19:20 +0900 Subject: [PATCH] esp32: Fix phy_printf Fix the following error: CC: chip/esp32_wifi_adapter.c In file included from /Users/yamamoto/git/nuttx/nuttx/include/nuttx/mm/shm.h:45, from /Users/yamamoto/git/nuttx/nuttx/include/nuttx/sched.h:42, from /Users/yamamoto/git/nuttx/nuttx/include/sched.h:35, from /Users/yamamoto/git/nuttx/nuttx/include/stdio.h:48, from chip/esp32_wifi_adapter.c:28: chip/esp32_wifi_adapter.c: In function 'phy_printf': chip/esp32_wifi_adapter.c:3952:10: error: expected ')' before 'format' wlinfo(format, arg); ^~~~~~ --- arch/xtensa/src/esp32/esp32_wifi_adapter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_wifi_adapter.c b/arch/xtensa/src/esp32/esp32_wifi_adapter.c index bbcc31ac56..607ffcad5f 100644 --- a/arch/xtensa/src/esp32/esp32_wifi_adapter.c +++ b/arch/xtensa/src/esp32/esp32_wifi_adapter.c @@ -3946,11 +3946,13 @@ void IRAM_ATTR phy_exit_critical(uint32_t level) int phy_printf(const char *format, ...) { +#ifdef CONFIG_DEBUG_WIRELESS_INFO va_list arg; va_start(arg, format); - wlinfo(format, arg); + vsyslog(LOG_INFO, format, arg); va_end(arg); +#endif return 0; }