解决 list_mutex 互斥量没有线程持有时打印错误

This commit is contained in:
Yang Xijing 2025-03-21 16:02:50 +08:00 committed by Meco Man
parent 713be7f3c8
commit cdb5ce8d04
1 changed files with 2 additions and 2 deletions

View File

@ -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));