Skip to content

Commit

Permalink
sched/misc/assert.c: Use "this_task" instead of "running_task"
Browse files Browse the repository at this point in the history
We want to dump information about the asserting task. Not about the
one we are going to return to from the assert/exception.

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
Jukka Laitinen committed Mar 19, 2024
1 parent 34fa847 commit de7c2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sched/misc/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static void dump_deadlock(void)
void _assert(FAR const char *filename, int linenum,
FAR const char *msg, FAR void *regs)
{
FAR struct tcb_s *rtcb = running_task();
FAR struct tcb_s *rtcb = this_task();
#if CONFIG_TASK_NAME_SIZE > 0
FAR struct tcb_s *ptcb = NULL;
#endif
Expand Down

0 comments on commit de7c2c2

Please sign in to comment.