Changeset 28593c6 in rtems


Ignore:
Timestamp:
Apr 8, 2017, 11:21:44 AM (3 years ago)
Author:
Cillian O'Donnell <cpodonnell8@…>
Branches:
master
Children:
50b1269
Parents:
53e7393
git-author:
Cillian O'Donnell <cpodonnell8@…> (04/08/17 11:21:44)
git-committer:
Joel Sherrill <joel@…> (04/14/17 18:01:14)
Message:

powerpc/haleakala/./mmu_405.c: Use inttypes.h constants removes 11 warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/haleakala/mmu/mmu_405.c

    r53e7393 r28593c6  
    1010#include <libcpu/powerpc-utility.h>
    1111#include "mmu_405.h"
     12#include <inttypes.h>
    1213
    1314/* #define qLogTLB */
     
    140141     
    141142      if (tdex != index) {
    142         printk(" Add TLB %d: At %X for $%X sizecode %d tagWord $%X  ",index, startAt, mask+1,sizeCode,tagWord);
     143        printk(" Add TLB %d: At %" PRIx32 " for $%" PRIx32
     144               " sizecode %d tagWord $%" PRIx32 "  ",
     145               index, startAt, mask+1,sizeCode,tagWord);
    143146        printk(" -- find failed, %d/%d!\n",tdex,index);
    144147        MMU_GetTLBEntry(index, &tagWord, &dataWord, &pid);
    145         printk(" -- reads back $%X : $%X, PID %d\n",tagWord,dataWord,pid);
     148        printk(" -- reads back $%" PRIx32 " : $%" PRIx32
     149               ", PID %d\n",tagWord,dataWord,pid);
    146150      } else {
    147151        #ifdef qLogTLBDetails
     
    268272  addr = PPC_SPECIAL_PURPOSE_REGISTER(SPR_DEAR);
    269273  excSyn  = PPC_SPECIAL_PURPOSE_REGISTER(SPR_ESR);
    270   if (excSyn & kESR_DST) printk("\n---Data write to $%X attempted at $%X\n",addr,f->EXC_SRR0);
    271             else printk("\n---Data read from $%X attempted at $%X\n",addr,f->EXC_SRR0);
     274  if (excSyn & kESR_DST) printk("\n---Data write to $%" PRIx32
     275      " attempted at $%" PRIx32 "\n",addr,f->EXC_SRR0);
     276            else printk("\n---Data read from $%" PRIx32 " attempted at $%"
     277                        PRIx32 "\n",addr,f->EXC_SRR0);
    272278  return -1;
    273279}
     
    275281int InstructionMissException(BSP_Exception_frame *f, unsigned int vector)
    276282{
    277   printk("\n---Instruction fetch attempted from $%X, no TLB exists\n",f->EXC_SRR0);
     283  printk("\n---Instruction fetch attempted from $%" PRIx32 ", no TLB exists\n",
     284         f->EXC_SRR0);
    278285  return -1;
    279286}
     
    281288int InstructionFetchException(BSP_Exception_frame *f, unsigned int vector)
    282289{
    283   printk("\n---Instruction fetch attempted from $%X, TLB is no-execute\n",f->EXC_SRR0);
     290  printk("\n---Instruction fetch attempted from $%" PRIx32
     291         ", TLB is no-execute\n",f->EXC_SRR0);
    284292  return -1;
    285293}
Note: See TracChangeset for help on using the changeset viewer.