Ignore:
Timestamp:
Sep 28, 2017, 5:12:53 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
610ffd7
Parents:
441993a8
Message:

bsps/powerpc: Fix print format warnings

File:
1 edited

Legend:

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

    r441993a8 rf2b5d672  
    273273  excSyn  = PPC_SPECIAL_PURPOSE_REGISTER(SPR_ESR);
    274274  if (excSyn & kESR_DST) printk("\n---Data write to $%" PRIx32
    275       " attempted at $%" PRIx32 "\n",addr,f->EXC_SRR0);
     275      " attempted at $%" PRIxPTR "\n",addr,f->EXC_SRR0);
    276276            else printk("\n---Data read from $%" PRIx32 " attempted at $%"
    277                         PRIx32 "\n",addr,f->EXC_SRR0);
     277                        PRIxPTR "\n",addr,f->EXC_SRR0);
    278278  return -1;
    279279}
     
    281281int InstructionMissException(BSP_Exception_frame *f, unsigned int vector)
    282282{
    283   printk("\n---Instruction fetch attempted from $%" PRIx32 ", no TLB exists\n",
     283  printk("\n---Instruction fetch attempted from $%" PRIxPTR ", no TLB exists\n",
    284284         f->EXC_SRR0);
    285285  return -1;
     
    288288int InstructionFetchException(BSP_Exception_frame *f, unsigned int vector)
    289289{
    290   printk("\n---Instruction fetch attempted from $%" PRIx32
     290  printk("\n---Instruction fetch attempted from $%" PRIxPTR
    291291         ", TLB is no-execute\n",f->EXC_SRR0);
    292292  return -1;
Note: See TracChangeset for help on using the changeset viewer.