mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-03 04:07:56 +00:00
usbtrace_enable(TRACE_BITSET) was copied from nsh's CONFIG_USBDEV_TRACE block without also copying nsh's local #define TRACE_BITSET or the <nuttx/usb/usbdev_trace.h> include it needs. TRACE_BITSET has no built-in definition; every other CONFIG_USBDEV_TRACE caller in the tree (nsh, composite, cdcacm, usbmsc) defines its own. This compiled fine as long as CONFIG_SYSTEM_NXINIT and CONFIG_USBDEV_TRACE were never both on for the same board; the two combined for the first time and init.c failed to build with 'TRACE_BITSET' undeclared. Add the missing include and inline the same error-only bitset those other callers fall back to when none of their granular trace options are enabled, since this file has no such granular Kconfig of its own. Assisted-by: OpenCode:claude-sonnet-5 Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| test | ||
| action.c | ||
| action.h | ||
| builtin.c | ||
| builtin.h | ||
| CMakeLists.txt | ||
| import.c | ||
| import.h | ||
| init.c | ||
| init.h | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| parser.c | ||
| parser.h | ||
| property.h | ||
| property_simple.c | ||
| service.c | ||
| service.h | ||