提交 232fec27 编写于 作者: Z zff

fix: 内核ERR打印,线程信息,不方便问题定位。

close: #I4DAKM
Signed-off-by: Nzff <zhangfanfan2@huawei.com>
Change-Id: I10a61d87fa516dcccd5ce0ebca18680a20e2f452
上级 fe06d0cb
......@@ -32,7 +32,7 @@
#include "los_debug.h"
#include "stdarg.h"
#include "los_interrupt.h"
#include "los_task.h"
#if (LOSCFG_KERNEL_PRINTF == 1)
STATIC const CHAR *g_logString[] = {
......@@ -91,7 +91,7 @@ INT32 OsLogLevelCheck(INT32 level)
}
if ((level != LOG_COMMON_LEVEL) && ((level > LOG_EMG_LEVEL) && (level <= LOG_DEBUG_LEVEL))) {
PRINTK("[%s]", g_logString[level]);
PRINTK("[%s][%s]", g_logString[level], LOS_CurTaskNameGet());
}
return LOS_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册