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);
          ^~~~~~
This commit is contained in:
YAMAMOTO Takashi 2020-12-17 16:19:20 +09:00 committed by Xiang Xiao
parent 8313c2a3dc
commit 75bc489e24

View File

@ -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;
}