mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
committed by
Xiang Xiao
parent
8313c2a3dc
commit
75bc489e24
@@ -3946,11 +3946,13 @@ void IRAM_ATTR phy_exit_critical(uint32_t level)
|
|||||||
|
|
||||||
int phy_printf(const char *format, ...)
|
int phy_printf(const char *format, ...)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_DEBUG_WIRELESS_INFO
|
||||||
va_list arg;
|
va_list arg;
|
||||||
|
|
||||||
va_start(arg, format);
|
va_start(arg, format);
|
||||||
wlinfo(format, arg);
|
vsyslog(LOG_INFO, format, arg);
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user