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:
parent
8313c2a3dc
commit
75bc489e24
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user