/* * 模块名称:主机侧单测桩 - dbg_log.h(prot_set_store 模块专用) * 模块功能:把 MCU 版 DBG_* 宏替换为计数,让"换代只打 INFO、损坏不打"这类 * 留痕差异成为可断言的行为(B8 的分流契约一半就在措辞上)。 * ⚠ 仅供 test/host/prot_set_store/ 使用,不参与 MCU 构建。 * 创建日期:2026-10-23 */ #ifndef DBG_LOG_H #define DBG_LOG_H extern int g_pstore_info_count; extern int g_pstore_error_count; extern int g_pstore_debug_count; #define DBG_INFO(fmt, ...) do { (void)(fmt); g_pstore_info_count++; } while (0) #define DBG_DEBUG(fmt, ...) do { (void)(fmt); g_pstore_debug_count++; } while (0) #define DBG_ERROR(fmt, ...) do { (void)(fmt); g_pstore_error_count++; } while (0) #endif /* DBG_LOG_H */