mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20811 from nmeum/pr/riscv_common-format-error-llvm
riscv_common: Use unsiged long format specifier for printing CSR values
This commit is contained in:
commit
3d5582d563
@ -146,8 +146,8 @@ static void handle_trap(uword_t mcause)
|
|||||||
#ifdef DEVELHELP
|
#ifdef DEVELHELP
|
||||||
printf("Unhandled trap:\n");
|
printf("Unhandled trap:\n");
|
||||||
printf(" mcause: 0x%" PRIx32 "\n", trap);
|
printf(" mcause: 0x%" PRIx32 "\n", trap);
|
||||||
printf(" mepc: 0x%" PRIx32 "\n", read_csr(mepc));
|
printf(" mepc: 0x%lx\n", read_csr(mepc));
|
||||||
printf(" mtval: 0x%" PRIx32 "\n", read_csr(mtval));
|
printf(" mtval: 0x%lx\n", read_csr(mtval));
|
||||||
#endif
|
#endif
|
||||||
/* Unknown trap */
|
/* Unknown trap */
|
||||||
core_panic(PANIC_GENERAL_ERROR, "Unhandled trap");
|
core_panic(PANIC_GENERAL_ERROR, "Unhandled trap");
|
||||||
|
Loading…
Reference in New Issue
Block a user