1
0
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:
benpicco 2024-08-12 16:40:30 +00:00 committed by GitHub
commit 3d5582d563
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,8 +146,8 @@ static void handle_trap(uword_t mcause)
#ifdef DEVELHELP
printf("Unhandled trap:\n");
printf(" mcause: 0x%" PRIx32 "\n", trap);
printf(" mepc: 0x%" PRIx32 "\n", read_csr(mepc));
printf(" mtval: 0x%" PRIx32 "\n", read_csr(mtval));
printf(" mepc: 0x%lx\n", read_csr(mepc));
printf(" mtval: 0x%lx\n", read_csr(mtval));
#endif
/* Unknown trap */
core_panic(PANIC_GENERAL_ERROR, "Unhandled trap");