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:
parent
ac4a183a60
commit
72e5e37c2d
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue