Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert问题&elog_hex_dump #31

Open
IdiotStoneMa opened this issue Dec 21, 2018 · 7 comments
Open

assert问题&elog_hex_dump #31

IdiotStoneMa opened this issue Dec 21, 2018 · 7 comments

Comments

@IdiotStoneMa
Copy link
Contributor

1、我们需要使用hex_dump功能,我参考ulog_hex_demp实现了,我可以提交一个pr吗?
2、elog_async_init中init_ok = true;建议提前到ifdef ELOG_ASYNC_OUTPUT_USING_PTHREAD宏定义前,我修改异步输出任务调度方式为SCHED_FIFO时发现,在任务还没有返回时async_output回调就被调用,会在该函数中ELOG_ASSERT(init_ok);导致无法输出。

@armink
Copy link
Owner

armink commented Dec 21, 2018

  • 欢迎 hex_dump 功能的 pr 哈
  • 或者把 ELOG_ASSERT(init_ok) 删掉吧,感觉放这个 static 函数里没啥用呢

@IdiotStoneMa
Copy link
Contributor Author

IdiotStoneMa commented Dec 21, 2018 via email

@armink
Copy link
Owner

armink commented Dec 25, 2018

ELOG_ASSERT(init_ok) 的优化还做吗?

其他内容已经在 #32 中更新

@armink armink closed this as completed Dec 25, 2018
@IdiotStoneMa
Copy link
Contributor Author

IdiotStoneMa commented Dec 25, 2018 via email

@armink
Copy link
Owner

armink commented Dec 25, 2018

也可以的,主要 elog_async.c 中提供了基于 pthread 的实现,这样用户这边可能就无需再针对异步模式再做移植了,降低了用户的一些工作量。

@armink armink reopened this Dec 25, 2018
@IdiotStoneMa
Copy link
Contributor Author

好的,这几天空了我就提交pr,后续有啥我这边也可以帮忙处理,这段时间会大量使用elog~

@armink
Copy link
Owner

armink commented Dec 25, 2018

好呀,后面也可以加 QQ(3830__16632) 交流。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants