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++ 日志库
MIT License
3.77k stars 1.17k forks source link

Change the buf parameter type of elog_hexdump #121

Closed FragrantRye closed 2 years ago

FragrantRye commented 2 years ago

Change the 'buf' parameter type from uint8_t to const void.

Signed-off-by: FragrantRye 903465575@qq.com

armink commented 2 years ago

直接 const uint8_t * 可以吗?

FragrantRye commented 2 years ago

也可以呀,用void是想让elog_hexdump能够接受任意类型,dump一些结构体的时候用uint8_t的话还要强转一下。 您觉得保持uint8_t 更好吗?

armink commented 2 years ago

明白了,感谢你的贡献哈