diff options
| author | Yang Xijing <[email protected]> | 2025-03-21 16:02:50 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2025-03-21 20:52:18 -0400 |
| commit | cdb5ce8d04c4c0395f625af717091ea0f227007f (patch) | |
| tree | 2a9a7eed7870e12902b8f625c683c7f593976b1f | |
| parent | 713be7f3c83d31b75540fc954a0e6bcd2d7feef3 (diff) | |
解决 list_mutex 互斥量没有线程持有时打印错误
| -rw-r--r-- | components/finsh/cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index f8ee6b7fc5..9251ce4cb0 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)); |
