fix coredump error

This commit is contained in:
lnk
2025-12-23 15:09:28 +08:00
parent 1014aeafbc
commit dd01a31a77
5 changed files with 32 additions and 15 deletions

View File

@@ -484,6 +484,7 @@ extern "C" {
//标准化日志接口
// #define LOGMSG_WITH_TS // 需要时间时再打开
//已在头文件添加编译校验
void format_log_msg(char* buf, size_t buf_size, const char* fmt, ...) {
if (!buf || buf_size == 0) return;
buf[0] = '\0';