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/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;
Note: See TracChangeset for help on using the changeset viewer.