mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
hardfault_log:Fix hard fault - while hard fault logging
This commit is contained in:
committed by
Daniel Agar
parent
8d1b99be31
commit
de6d31ef3e
@@ -257,7 +257,7 @@ static int write_stack_detail(bool inValid, _stack_s *si, char *sp_name,
|
|||||||
|
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
FAR struct tcb_s tcb;
|
FAR struct tcb_s tcb;
|
||||||
tcb.stack_alloc_ptr = (void *) sbot;
|
tcb.adj_stack_ptr = (void *) sbot;
|
||||||
tcb.adj_stack_size = si->size;
|
tcb.adj_stack_size = si->size;
|
||||||
n = snprintf(buffer, max, " used: %08x\n", up_check_tcbstack(&tcb));
|
n = snprintf(buffer, max, " used: %08x\n", up_check_tcbstack(&tcb));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user