#ifndef APP_LOG_H #define APP_LOG_H #include "app_config.h" #include "system/generic/printf.h" /* * APP_LOG 使用独立的 user_printf 输出。 * 这样关闭 SDK printf 后,仍可保留 JL-AIBT-SoundBox 自己的日志。 */ #if defined(CONFIG_USER_DEBUG_ENABLE) && \ defined(CONFIG_APP_LOG_ENABLE) && \ CONFIG_APP_LOG_ENABLE #define APP_LOG(...) user_printf(__VA_ARGS__) #else #define APP_LOG(...) do { } while (0) #endif #endif