fix(liblog): 修复 stru_log_msg 链表指针类型不匹配 (6 warnings)

- typedef struct 添加 tag: struct stru_log_msg
- next 指针类型从 struct log_msg* 改为 struct stru_log_msg*
- 消除 6 处 incompatible-pointer-types 警告
This commit is contained in:
ypc 2026-07-08 13:34:11 +08:00
parent ac4a183a60
commit 72e5e37c2d
1 changed files with 2 additions and 2 deletions

View File

@ -41,13 +41,13 @@
/**
* @brief +
*/
typedef struct
typedef struct stru_log_msg
{
uint32_t level; /* 日志级别 LOG_INFO/LOG_ERROR */
char time_str[64]; /* 时间戳 YYYY-MM-DD HH:MM:SS.mmm */
char src_info[128]; /* "文件名/函数:行号" */
char content[CONTENT_MAX]; /* 格式化后的日志内容 */
struct log_msg *next; /* 空闲链表/队列链表指针 */
struct stru_log_msg *next; /* 空闲链表/队列链表指针 */
} stru_log_msg;
/**