summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryixinghua121 <[email protected]>2025-03-12 16:02:43 +0800
committerGitHub <[email protected]>2025-03-12 16:02:43 +0800
commit983f02151af42c5ef8ac5718bda0cf39795652a9 (patch)
treec642d5c746d3d7833a0b5fdb2851c458ca8c1f40 /src
parent88607c1404b882b6a10267b9d7efb661c9a63c5c (diff)
修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题
Diffstat (limited to 'src')
-rw-r--r--src/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread.c b/src/thread.c
index 4a913eec92..789077d082 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -398,7 +398,7 @@ rt_err_t rt_thread_startup(rt_thread_t thread)
RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
LOG_D("startup a thread:%s with priority:%d",
- thread->parent.name, thread->current_priority);
+ thread->parent.name, RT_SCHED_PRIV(thread).current_priority);
/* calculate priority attribute and reset thread stat to suspend */
rt_sched_thread_startup(thread);
@@ -911,7 +911,7 @@ rt_err_t rt_thread_suspend_to_list(rt_thread_t thread, rt_list_t *susp_list, int
stat = rt_sched_thread_get_stat(thread);
if ((stat != RT_THREAD_READY) && (stat != RT_THREAD_RUNNING))
{
- LOG_D("thread suspend: thread disorder, 0x%2x", thread->stat);
+ LOG_D("thread suspend: thread disorder, 0x%2x", RT_SCHED_CTX(thread).stat);
rt_sched_unlock(slvl);
return -RT_ERROR;
}