mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 17:20:48 +08:00
score/cpu/or1k/or1k-exception-frame-print.c: Fix printf() format warning
This commit is contained in:
@@ -12,11 +12,13 @@
|
||||
|
||||
#include <rtems/score/cpu.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
|
||||
{
|
||||
uint32_t i;
|
||||
int i;
|
||||
|
||||
for ( i = 0; i < 32; ++i ) {
|
||||
printk( "r%02i = 0x%016x\n",i, frame->r[i]);
|
||||
printk( "r%02i = 0x%016" PRIx32 "\n",i, frame->r[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user