forked from Imagelibrary/rtems
score/i386: Fix printk format warnings.
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <rtems/system.h>
|
#include <rtems/system.h>
|
||||||
#include <rtems/score/types.h>
|
#include <rtems/score/types.h>
|
||||||
@@ -133,19 +135,19 @@ void _CPU_Exception_frame_print (const CPU_Exception_frame *ctx)
|
|||||||
{
|
{
|
||||||
unsigned int faultAddr = 0;
|
unsigned int faultAddr = 0;
|
||||||
printk("----------------------------------------------------------\n");
|
printk("----------------------------------------------------------\n");
|
||||||
printk("Exception %d caught at PC %x by thread %d\n",
|
printk("Exception %" PRIu32 " caught at PC %" PRIx32 " by thread %" PRId32 "\n",
|
||||||
ctx->idtIndex,
|
ctx->idtIndex,
|
||||||
ctx->eip,
|
ctx->eip,
|
||||||
_Thread_Executing->Object.id);
|
_Thread_Executing->Object.id);
|
||||||
printk("----------------------------------------------------------\n");
|
printk("----------------------------------------------------------\n");
|
||||||
printk("Processor execution context at time of the fault was :\n");
|
printk("Processor execution context at time of the fault was :\n");
|
||||||
printk("----------------------------------------------------------\n");
|
printk("----------------------------------------------------------\n");
|
||||||
printk(" EAX = %x EBX = %x ECX = %x EDX = %x\n",
|
printk(" EAX = %" PRIx32 " EBX = %" PRIx32 " ECX = %" PRIx32 " EDX = %" PRIx32 "\n",
|
||||||
ctx->eax, ctx->ebx, ctx->ecx, ctx->edx);
|
ctx->eax, ctx->ebx, ctx->ecx, ctx->edx);
|
||||||
printk(" ESI = %x EDI = %x EBP = %x ESP = %x\n",
|
printk(" ESI = %" PRIx32 " EDI = %" PRIx32 " EBP = %" PRIx32 " ESP = %" PRIx32 "\n",
|
||||||
ctx->esi, ctx->edi, ctx->ebp, ctx->esp0);
|
ctx->esi, ctx->edi, ctx->ebp, ctx->esp0);
|
||||||
printk("----------------------------------------------------------\n");
|
printk("----------------------------------------------------------\n");
|
||||||
printk("Error code pushed by processor itself (if not 0) = %x\n",
|
printk("Error code pushed by processor itself (if not 0) = %" PRIx32 "\n",
|
||||||
ctx->faultCode);
|
ctx->faultCode);
|
||||||
printk("----------------------------------------------------------\n");
|
printk("----------------------------------------------------------\n");
|
||||||
if (ctx->idtIndex == I386_EXCEPTION_PAGE_FAULT){
|
if (ctx->idtIndex == I386_EXCEPTION_PAGE_FAULT){
|
||||||
@@ -168,7 +170,7 @@ void _CPU_Exception_frame_print (const CPU_Exception_frame *ctx)
|
|||||||
printk("Call Stack Trace of EIP:\n");
|
printk("Call Stack Trace of EIP:\n");
|
||||||
if ( fp ) {
|
if ( fp ) {
|
||||||
for ( i=1; fp->up; fp=fp->up, i++ ) {
|
for ( i=1; fp->up; fp=fp->up, i++ ) {
|
||||||
printk("0x%08x ",fp->pc);
|
printk("0x%08" PRIx32 " ",fp->pc);
|
||||||
if ( ! (i&3) )
|
if ( ! (i&3) )
|
||||||
printk("\n");
|
printk("\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user