mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:49:47 +01:00
e7325ec02a
The read_csr macro returns the CSR value as a `unsigned long`. However, the format specifier presently treats it as a `uint32_t`. This causes a -Wformat error to be emitted by Clang 18: cpu/riscv_common/irq_arch.c:149:49: error: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Werror,-Wformat] 149 | printf(" mepc: 0x%" PRIx32 "\n", read_csr(mepc)); |
||
---|---|---|
.. | ||
include | ||
ldscripts | ||
periph | ||
context_frame.c | ||
irq_arch.c | ||
Kconfig | ||
Makefile | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
panic.c | ||
riscv_init.c | ||
start.S | ||
thread_arch.c |