From 9c3840ffad5b4ed1819d3d6aee26ce5bf76729e4 Mon Sep 17 00:00:00 2001 From: Yang Xijing <814370731@qq.com> Date: Fri, 21 Mar 2025 16:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20list=5Fmutex=20=E4=BA=92?= =?UTF-8?q?=E6=96=A5=E9=87=8F=E6=B2=A1=E6=9C=89=E7=BA=BF=E7=A8=8B=E6=8C=81?= =?UTF-8?q?=E6=9C=89=E6=97=B6=E6=89=93=E5=8D=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/finsh/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index f8ee6b7fc53..9251ce4cb01 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -453,7 +453,7 @@ long list_mutex(void) maxlen, RT_NAME_MAX, m->parent.parent.name, RT_NAME_MAX, - m->owner->parent.name, + (m->owner == RT_NULL) ? "(null)" : m->owner->parent.name, m->hold, m->priority, rt_list_len(&m->parent.suspend_thread)); @@ -466,7 +466,7 @@ long list_mutex(void) maxlen, RT_NAME_MAX, m->parent.parent.name, RT_NAME_MAX, - m->owner->parent.name, + (m->owner == RT_NULL) ? "(null)" : m->owner->parent.name, m->hold, m->priority, rt_list_len(&m->parent.suspend_thread));