update fault_call_stack_backtrace format
This commit is contained in:
@@ -134,7 +134,7 @@ __STATIC__ void fault_call_stack_backtrace(fault_info_t *info, size_t depth)
|
||||
|
||||
k_fault_log_writer("\n\n====================== Dump Call Stack =====================\n");
|
||||
|
||||
k_fault_log_writer(" %x\n", info->pc);
|
||||
k_fault_log_writer("%08x", info->pc);
|
||||
|
||||
/* walk through the stack, check every content on stack whether is a instruction(code) */
|
||||
for (; sp < info->stack_limit && depth; sp += sizeof(cpu_addr_t)) {
|
||||
@@ -146,10 +146,12 @@ __STATIC__ void fault_call_stack_backtrace(fault_info_t *info, size_t depth)
|
||||
}
|
||||
|
||||
if (fault_is_code(info, value)) {
|
||||
k_fault_log_writer(" %x\n", value);
|
||||
k_fault_log_writer(" %08x\n", value);
|
||||
--depth;
|
||||
}
|
||||
}
|
||||
|
||||
k_fault_log_writer("\nusage: addr2line -e <*.axf> -a -f <dump call stack>");
|
||||
}
|
||||
|
||||
__STATIC__ void fault_dump_task(fault_info_t *info)
|
||||
|
Reference in New Issue
Block a user