You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/09/21 12:22:37 UTC

[incubator-nuttx] 01/02: xtensa_dumpstate.c: Fix the name of the TCB variable when dumping the backtrace.

This is an automated email from the ASF dual-hosted git repository.

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 9f4d7e4767c0af920a30e75dfceb820ec0cd2e52
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Tue Sep 21 13:08:20 2021 +0200

    xtensa_dumpstate.c: Fix the name of the TCB variable when dumping the
    backtrace.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 arch/xtensa/src/common/xtensa_dumpstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_dumpstate.c b/arch/xtensa/src/common/xtensa_dumpstate.c
index 6627556..daccaed 100644
--- a/arch/xtensa/src/common/xtensa_dumpstate.c
+++ b/arch/xtensa/src/common/xtensa_dumpstate.c
@@ -74,7 +74,7 @@ static void up_taskdump(FAR struct tcb_s *tcb, FAR void *arg)
 
 #if defined(CONFIG_XTENSA_DUMPBT_ON_ASSERT) && \
     defined(CONFIG_SCHED_BACKTRACE)
-  sched_dumpstack(rtcb->pid);
+  sched_dumpstack(tcb->pid);
 #endif
 }
 #endif