/* * 模块名称:主机侧单测桩 - dbg_log.h(lftpd_io 模块专用) * 模块功能:DBG_* 换成计数,让"打开失败必须留痕、等锁循环不打日志"可断言。 * ⚠ 仅供 test/host/lftpd_io/ 使用,不参与 MCU 构建。 * 创建日期:2026-10-23 */ #ifndef DBG_LOG_H #define DBG_LOG_H extern int g_lfio_info_count; extern int g_lfio_error_count; extern int g_lfio_debug_count; #define DBG_INFO(fmt, ...) do { (void)(fmt); g_lfio_info_count++; } while (0) #define DBG_DEBUG(fmt, ...) do { (void)(fmt); g_lfio_debug_count++; } while (0) #define DBG_ERROR(fmt, ...) do { (void)(fmt); g_lfio_error_count++; } while (0) #endif /* DBG_LOG_H */