armink / EasyLogger

An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

请在elog_hexdump函数的buf参数类型前加上const修饰符

FragrantRye opened this issue · comments

//void elog_hexdump(const char *name, uint8_t width, uint8_t *buf, uint16_t size);
void elog_hexdump(const char *name, uint8_t width, const uint8_t *buf, uint16_t size);

项目里开了-Wall,-Werror,这里只接收non-const变量但传入的是const变量编译不过。

多谢反馈,方便提交一下 PR 吗?