未验证 提交 3fa35a39 编写于 作者: B Bernard Xiong 提交者: GitHub

Update ulog.c

Use `rt_thread_self()` to determine whether the scheduler is started or not.
上级 fc97cd23
......@@ -337,7 +337,7 @@ RT_WEAK rt_size_t ulog_formater(char *log_buf, rt_uint32_t level, const char *ta
{
rt_size_t name_len = 0;
const char *thread_name = "N/A";
if (rt_thread_self()->name)
if (rt_thread_self())
{
thread_name = rt_thread_self()->name;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册