bsps/sparc: Fix warnings

This commit is contained in:
Sebastian Huber
2017-02-15 12:57:56 +01:00
parent f5cf2fe293
commit bc74461882
3 changed files with 19 additions and 10 deletions

View File

@@ -15,6 +15,7 @@
#include <bsp.h>
#include <rtems/bspIo.h>
#include <inttypes.h>
void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
{
@@ -26,7 +27,11 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
real_trap = SPARC_REAL_TRAP_NUMBER(trap);
isf = frame->isf;
printk( "Unexpected trap (%2d) at address 0x%08x\n", real_trap, isf->tpc);
printk(
"Unexpected trap (%2" PRId32 ") at address 0x%08" PRIx32 "\n",
real_trap,
isf->tpc
);
switch (real_trap) {
@@ -56,7 +61,7 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
printk( "fp exception\n" );
break;
case 0x09:
printk("data access exception at 0x%08x\n",
printk("data access exception at 0x%08" PRIx32 "\n",
ERC32_MEC.First_Failing_Address );
break;
case 0x0A:

View File

@@ -21,6 +21,7 @@
#include <bsp.h>
#include <rtems/bspIo.h>
#include <inttypes.h>
void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
{
@@ -32,7 +33,11 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
real_trap = SPARC_REAL_TRAP_NUMBER(trap);
isf = frame->isf;
printk( "Unexpected trap (%2d) at address 0x%08x\n", real_trap, isf->tpc);
printk(
"Unexpected trap (%2" PRId32 ") at address 0x%08" PRIx32 "\n",
real_trap,
isf->tpc
);
switch (real_trap) {

View File

@@ -20,6 +20,7 @@
#include <bsp.h>
#include <rtems/score/cpu.h>
#include <rtems/bspIo.h>
#include <inttypes.h>
void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
{
@@ -31,7 +32,11 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
real_trap = SPARC_REAL_TRAP_NUMBER(trap);
isf = frame->isf;
printk( "Unexpected trap (0x%02x) at address 0x%08x\n", real_trap, isf->tpc);
printk(
"Unexpected trap (%2" PRId32 ") at address 0x%08" PRIx32 "\n",
real_trap,
isf->tpc
);
switch (real_trap) {
@@ -60,12 +65,6 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
case 0x08:
printk( "fp exception\n" );
break;
case 0x09:
printk( "Unexpected trap (0x%2d) at address XXX\n",
real_trap
/* XXX FIXME isf->tpc */
);
break;
case 0x0A:
printk( "tag overflow\n" );
break;