Skip to content

Commit 81a0842

Browse files
committed
fixed LOG bug
1 parent ba50b60 commit 81a0842

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dfs/dfs_v2/src/dfs_dentry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static struct dfs_dentry *_dentry_create(struct dfs_mnt *mnt, char *path, rt_boo
6969
rt_atomic_store(&(dentry->ref_count), 1);
7070
dentry->flags |= DENTRY_IS_ALLOCED;
7171

72-
LOG_I("create a dentry:%p for %s", dentry, fullpath);
72+
LOG_I("create a dentry:%p for %s", dentry, mnt->fullpath);
7373
}
7474

7575
return dentry;

src/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ rt_err_t rt_thread_startup(rt_thread_t thread)
398398
RT_ASSERT(rt_object_get_type((rt_object_t)thread) == RT_Object_Class_Thread);
399399

400400
LOG_D("startup a thread:%s with priority:%d",
401-
thread->parent.name, thread->current_priority);
401+
thread->parent.name, RT_SCHED_PRIV(thread).current_priority);
402402

403403
/* calculate priority attribute and reset thread stat to suspend */
404404
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
911911
stat = rt_sched_thread_get_stat(thread);
912912
if ((stat != RT_THREAD_READY) && (stat != RT_THREAD_RUNNING))
913913
{
914-
LOG_D("thread suspend: thread disorder, 0x%2x", thread->stat);
914+
LOG_D("thread suspend: thread disorder, 0x%2x", RT_SCHED_CTX(thread).stat);
915915
rt_sched_unlock(slvl);
916916
return -RT_ERROR;
917917
}

0 commit comments

Comments
 (0)