From 232fec27ac8cd2f46b5a2f5cfbe4677d0e287314 Mon Sep 17 00:00:00 2001 From: zff Date: Mon, 11 Oct 2021 16:44:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=86=85=E6=A0=B8ERR=E6=89=93=E5=8D=B0?= =?UTF-8?q?=EF=BC=8C=E7=BA=BF=E7=A8=8B=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E9=97=AE=E9=A2=98=E5=AE=9A=E4=BD=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close: #I4DAKM Signed-off-by: zff Change-Id: I10a61d87fa516dcccd5ce0ebca18680a20e2f452 --- utils/los_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/los_debug.c b/utils/los_debug.c index 435641e0..1052b7d2 100644 --- a/utils/los_debug.c +++ b/utils/los_debug.c @@ -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;