Changeset f2b5d672 in rtems


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

bsps/powerpc: Fix print format warnings

Location:
c/src/lib
Files:
4 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;
  • c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c

    r441993a8 rf2b5d672  
    113113       printk(fmt, excPtr->_EXC_number);
    114114       /* register dump */
    115        printk("\t Next PC or Address of fault = %" PRIx32 ", ", excPtr->EXC_SRR0);
    116        printk("Mvme5500 Saved MSR = %" PRIx32 "\n", excPtr->EXC_SRR1);
    117        printk("\t R0  = %08" PRIx32, excPtr->GPR0);
    118        printk(" R1  = %08" PRIx32, excPtr->GPR1);
    119        printk(" R2  = %08" PRIx32, excPtr->GPR2);
    120        printk(" R3  = %08" PRIx32 "\n", excPtr->GPR3);
    121        printk("\t R4  = %08" PRIx32, excPtr->GPR4);
    122        printk(" R5  = %08" PRIx32, excPtr->GPR5);
    123        printk(" R6  = %08" PRIx32, excPtr->GPR6);
    124        printk(" R7  = %08" PRIx32 "\n", excPtr->GPR7);
    125        printk("\t R8  = %08" PRIx32, excPtr->GPR8);
    126        printk(" R9  = %08" PRIx32, excPtr->GPR9);
    127        printk(" R10 = %08" PRIx32, excPtr->GPR10);
    128        printk(" R11 = %08" PRIx32 "\n", excPtr->GPR11);
    129        printk("\t R12 = %08" PRIx32, excPtr->GPR12);
    130        printk(" R13 = %08" PRIx32, excPtr->GPR13);
    131        printk(" R14 = %08" PRIx32, excPtr->GPR14);
    132        printk(" R15 = %08" PRIx32 "\n", excPtr->GPR15);
    133        printk("\t R16 = %08" PRIx32, excPtr->GPR16);
    134        printk(" R17 = %08" PRIx32, excPtr->GPR17);
    135        printk(" R18 = %08" PRIx32, excPtr->GPR18);
    136        printk(" R19 = %08" PRIx32 "\n", excPtr->GPR19);
    137        printk("\t R20 = %08" PRIx32, excPtr->GPR20);
    138        printk(" R21 = %08" PRIx32, excPtr->GPR21);
    139        printk(" R22 = %08" PRIx32, excPtr->GPR22);
    140        printk(" R23 = %08" PRIx32 "\n", excPtr->GPR23);
    141        printk("\t R24 = %08" PRIx32, excPtr->GPR24);
    142        printk(" R25 = %08" PRIx32, excPtr->GPR25);
    143        printk(" R26 = %08" PRIx32, excPtr->GPR26);
    144        printk(" R27 = %08" PRIx32 "\n", excPtr->GPR27);
    145        printk("\t R28 = %08" PRIx32, excPtr->GPR28);
    146        printk(" R29 = %08" PRIx32, excPtr->GPR29);
    147        printk(" R30 = %08" PRIx32, excPtr->GPR30);
    148        printk(" R31 = %08" PRIx32 "\n", excPtr->GPR31);
     115       printk("\t Next PC or Address of fault = %" PRIxPTR ", ", excPtr->EXC_SRR0);
     116       printk("Mvme5500 Saved MSR = %" PRIxPTR "\n", excPtr->EXC_SRR1);
     117       printk("\t R0  = %08" PRIxPTR, excPtr->GPR0);
     118       printk(" R1  = %08" PRIxPTR, excPtr->GPR1);
     119       printk(" R2  = %08" PRIxPTR, excPtr->GPR2);
     120       printk(" R3  = %08" PRIxPTR "\n", excPtr->GPR3);
     121       printk("\t R4  = %08" PRIxPTR, excPtr->GPR4);
     122       printk(" R5  = %08" PRIxPTR, excPtr->GPR5);
     123       printk(" R6  = %08" PRIxPTR, excPtr->GPR6);
     124       printk(" R7  = %08" PRIxPTR "\n", excPtr->GPR7);
     125       printk("\t R8  = %08" PRIxPTR, excPtr->GPR8);
     126       printk(" R9  = %08" PRIxPTR, excPtr->GPR9);
     127       printk(" R10 = %08" PRIxPTR, excPtr->GPR10);
     128       printk(" R11 = %08" PRIxPTR "\n", excPtr->GPR11);
     129       printk("\t R12 = %08" PRIxPTR, excPtr->GPR12);
     130       printk(" R13 = %08" PRIxPTR, excPtr->GPR13);
     131       printk(" R14 = %08" PRIxPTR, excPtr->GPR14);
     132       printk(" R15 = %08" PRIxPTR "\n", excPtr->GPR15);
     133       printk("\t R16 = %08" PRIxPTR, excPtr->GPR16);
     134       printk(" R17 = %08" PRIxPTR, excPtr->GPR17);
     135       printk(" R18 = %08" PRIxPTR, excPtr->GPR18);
     136       printk(" R19 = %08" PRIxPTR "\n", excPtr->GPR19);
     137       printk("\t R20 = %08" PRIxPTR, excPtr->GPR20);
     138       printk(" R21 = %08" PRIxPTR, excPtr->GPR21);
     139       printk(" R22 = %08" PRIxPTR, excPtr->GPR22);
     140       printk(" R23 = %08" PRIxPTR "\n", excPtr->GPR23);
     141       printk("\t R24 = %08" PRIxPTR, excPtr->GPR24);
     142       printk(" R25 = %08" PRIxPTR, excPtr->GPR25);
     143       printk(" R26 = %08" PRIxPTR, excPtr->GPR26);
     144       printk(" R27 = %08" PRIxPTR "\n", excPtr->GPR27);
     145       printk("\t R28 = %08" PRIxPTR, excPtr->GPR28);
     146       printk(" R29 = %08" PRIxPTR, excPtr->GPR29);
     147       printk(" R30 = %08" PRIxPTR, excPtr->GPR30);
     148       printk(" R31 = %08" PRIxPTR "\n", excPtr->GPR31);
    149149       printk("\t CR  = %08" PRIx32 "\n", excPtr->EXC_CR);
    150        printk("\t CTR = %08" PRIx32 "\n", excPtr->EXC_CTR);
     150       printk("\t CTR = %08" PRIxPTR "\n", excPtr->EXC_CTR);
    151151       printk("\t XER = %08" PRIx32 "\n", excPtr->EXC_XER);
    152        printk("\t LR  = %08" PRIx32 "\n", excPtr->EXC_LR);
     152       printk("\t LR  = %08" PRIxPTR "\n", excPtr->EXC_LR);
    153153
    154154       BSP_printStackTrace(excPtr);
  • c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors_init.c

    r441993a8 rf2b5d672  
    3636  printk("exception handler called for exception %" PRIu32 "\n",
    3737         excPtr->_EXC_number);
    38   printk("\t Next PC or Address of fault = %" PRIx32 "\n", excPtr->EXC_SRR0);
    39   printk("\t Saved MSR = %" PRIx32 "\n", excPtr->EXC_SRR1);
    40   printk("\t R0 = %" PRIx32 "\n", excPtr->GPR0);
    41   printk("\t R1 = %" PRIx32 "\n", excPtr->GPR1);
    42   printk("\t R2 = %" PRIx32 "\n", excPtr->GPR2);
    43   printk("\t R3 = %" PRIx32 "\n", excPtr->GPR3);
    44   printk("\t R4 = %" PRIx32 "\n", excPtr->GPR4);
    45   printk("\t R5 = %" PRIx32 "\n", excPtr->GPR5);
    46   printk("\t R6 = %" PRIx32 "\n", excPtr->GPR6);
    47   printk("\t R7 = %" PRIx32 "\n", excPtr->GPR7);
    48   printk("\t R8 = %" PRIx32 "\n", excPtr->GPR8);
    49   printk("\t R9 = %" PRIx32 "\n", excPtr->GPR9);
    50   printk("\t R10 = %" PRIx32 "\n", excPtr->GPR10);
    51   printk("\t R11 = %" PRIx32 "\n", excPtr->GPR11);
    52   printk("\t R12 = %" PRIx32 "\n", excPtr->GPR12);
    53   printk("\t R13 = %" PRIx32 "\n", excPtr->GPR13);
    54   printk("\t R14 = %" PRIx32 "\n", excPtr->GPR14);
    55   printk("\t R15 = %" PRIx32 "\n", excPtr->GPR15);
    56   printk("\t R16 = %" PRIx32 "\n", excPtr->GPR16);
    57   printk("\t R17 = %" PRIx32 "\n", excPtr->GPR17);
    58   printk("\t R18 = %" PRIx32 "\n", excPtr->GPR18);
    59   printk("\t R19 = %" PRIx32 "\n", excPtr->GPR19);
    60   printk("\t R20 = %" PRIx32 "\n", excPtr->GPR20);
    61   printk("\t R21 = %" PRIx32 "\n", excPtr->GPR21);
    62   printk("\t R22 = %" PRIx32 "\n", excPtr->GPR22);
    63   printk("\t R23 = %" PRIx32 "\n", excPtr->GPR23);
    64   printk("\t R24 = %" PRIx32 "\n", excPtr->GPR24);
    65   printk("\t R25 = %" PRIx32 "\n", excPtr->GPR25);
    66   printk("\t R26 = %" PRIx32 "\n", excPtr->GPR26);
    67   printk("\t R27 = %" PRIx32 "\n", excPtr->GPR27);
    68   printk("\t R28 = %" PRIx32 "\n", excPtr->GPR28);
    69   printk("\t R29 = %" PRIx32 "\n", excPtr->GPR29);
    70   printk("\t R30 = %" PRIx32 "\n", excPtr->GPR30);
    71   printk("\t R31 = %" PRIx32 "\n", excPtr->GPR31);
     38  printk("\t Next PC or Address of fault = %" PRIxPTR "\n", excPtr->EXC_SRR0);
     39  printk("\t Saved MSR = %" PRIxPTR "\n", excPtr->EXC_SRR1);
     40  printk("\t R0 = %" PRIxPTR "\n", excPtr->GPR0);
     41  printk("\t R1 = %" PRIxPTR "\n", excPtr->GPR1);
     42  printk("\t R2 = %" PRIxPTR "\n", excPtr->GPR2);
     43  printk("\t R3 = %" PRIxPTR "\n", excPtr->GPR3);
     44  printk("\t R4 = %" PRIxPTR "\n", excPtr->GPR4);
     45  printk("\t R5 = %" PRIxPTR "\n", excPtr->GPR5);
     46  printk("\t R6 = %" PRIxPTR "\n", excPtr->GPR6);
     47  printk("\t R7 = %" PRIxPTR "\n", excPtr->GPR7);
     48  printk("\t R8 = %" PRIxPTR "\n", excPtr->GPR8);
     49  printk("\t R9 = %" PRIxPTR "\n", excPtr->GPR9);
     50  printk("\t R10 = %" PRIxPTR "\n", excPtr->GPR10);
     51  printk("\t R11 = %" PRIxPTR "\n", excPtr->GPR11);
     52  printk("\t R12 = %" PRIxPTR "\n", excPtr->GPR12);
     53  printk("\t R13 = %" PRIxPTR "\n", excPtr->GPR13);
     54  printk("\t R14 = %" PRIxPTR "\n", excPtr->GPR14);
     55  printk("\t R15 = %" PRIxPTR "\n", excPtr->GPR15);
     56  printk("\t R16 = %" PRIxPTR "\n", excPtr->GPR16);
     57  printk("\t R17 = %" PRIxPTR "\n", excPtr->GPR17);
     58  printk("\t R18 = %" PRIxPTR "\n", excPtr->GPR18);
     59  printk("\t R19 = %" PRIxPTR "\n", excPtr->GPR19);
     60  printk("\t R20 = %" PRIxPTR "\n", excPtr->GPR20);
     61  printk("\t R21 = %" PRIxPTR "\n", excPtr->GPR21);
     62  printk("\t R22 = %" PRIxPTR "\n", excPtr->GPR22);
     63  printk("\t R23 = %" PRIxPTR "\n", excPtr->GPR23);
     64  printk("\t R24 = %" PRIxPTR "\n", excPtr->GPR24);
     65  printk("\t R25 = %" PRIxPTR "\n", excPtr->GPR25);
     66  printk("\t R26 = %" PRIxPTR "\n", excPtr->GPR26);
     67  printk("\t R27 = %" PRIxPTR "\n", excPtr->GPR27);
     68  printk("\t R28 = %" PRIxPTR "\n", excPtr->GPR28);
     69  printk("\t R29 = %" PRIxPTR "\n", excPtr->GPR29);
     70  printk("\t R30 = %" PRIxPTR "\n", excPtr->GPR30);
     71  printk("\t R31 = %" PRIxPTR "\n", excPtr->GPR31);
    7272  printk("\t CR = %" PRIx32 "\n", excPtr->EXC_CR);
    73   printk("\t CTR = %" PRIx32 "\n", excPtr->EXC_CTR);
     73  printk("\t CTR = %" PRIxPTR "\n", excPtr->EXC_CTR);
    7474  printk("\t XER = %" PRIx32 "\n", excPtr->EXC_XER);
    75   printk("\t LR = %" PRIx32 "\n", excPtr->EXC_LR);
     75  printk("\t LR = %" PRIxPTR "\n", excPtr->EXC_LR);
    7676  if (excPtr->_EXC_number == ASM_DEC_VECTOR)
    7777       recoverable = 1;
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c

    r441993a8 rf2b5d672  
    2727  #define GET_GPR(gpr) (gpr)
    2828#else
    29   #define GET_GPR(gpr) ((uint32_t) ((gpr) >> 32))
     29  #define GET_GPR(gpr) ((uintptr_t) ((gpr) >> 32))
    3030#endif
    3131
Note: See TracChangeset for help on using the changeset viewer.