Changeset 2d0a805 in rtems


Ignore:
Timestamp:
Jul 31, 2017, 11:35:21 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a597984
Parents:
af97ba8f
git-author:
Sebastian Huber <sebastian.huber@…> (07/31/17 11:35:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/31/17 11:43:29)
Message:

bsps/powerpc: Fix format specifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c

    raf97ba8f r2d0a805  
    9797
    9898  printk("exception vector %d (0x%x)\n", n, n);
    99   printk("  next PC or address of fault = 0x%08" PRIu32 "\n", excPtr->EXC_SRR0);
    100   printk("  saved MSR = 0x%08" PRIu32 "\n", excPtr->EXC_SRR1);
     99  printk("  next PC or address of fault = 0x%08" PRIx32 "\n", excPtr->EXC_SRR0);
     100  printk("  saved MSR = 0x%08" PRIx32 "\n", excPtr->EXC_SRR1);
    101101
    102102  /* Try to find out more about the context where this happened */
     
    113113  /* Dump registers */
    114114
    115   printk("  R0  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR0));
     115  printk("  R0  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR0));
    116116  if (synch) {
    117     printk(" R1  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR1));
    118     printk(" R2  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR2));
     117    printk(" R1  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR1));
     118    printk(" R2  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR2));
    119119  } else {
    120120    printk("               ");
    121121    printk("               ");
    122122  }
    123   printk(" R3  = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR3));
    124   printk("  R4  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR4));
    125   printk(" R5  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR5));
    126   printk(" R6  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR6));
    127   printk(" R7  = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR7));
    128   printk("  R8  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR8));
    129   printk(" R9  = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR9));
    130   printk(" R10 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR10));
    131   printk(" R11 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR11));
    132   printk("  R12 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR12));
     123  printk(" R3  = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR3));
     124  printk("  R4  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR4));
     125  printk(" R5  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR5));
     126  printk(" R6  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR6));
     127  printk(" R7  = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR7));
     128  printk("  R8  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR8));
     129  printk(" R9  = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR9));
     130  printk(" R10 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR10));
     131  printk(" R11 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR11));
     132  printk("  R12 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR12));
    133133  if (synch) {
    134     printk(" R13 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR13));
    135     printk(" R14 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR14));
    136     printk(" R15 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR15));
    137     printk("  R16 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR16));
    138     printk(" R17 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR17));
    139     printk(" R18 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR18));
    140     printk(" R19 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR19));
    141     printk("  R20 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR20));
    142     printk(" R21 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR21));
    143     printk(" R22 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR22));
    144     printk(" R23 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR23));
    145     printk("  R24 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR24));
    146     printk(" R25 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR25));
    147     printk(" R26 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR26));
    148     printk(" R27 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR27));
    149     printk("  R28 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR28));
    150     printk(" R29 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR29));
    151     printk(" R30 = 0x%08" PRIu32 "", GET_GPR(excPtr->GPR30));
    152     printk(" R31 = 0x%08" PRIu32 "\n", GET_GPR(excPtr->GPR31));
     134    printk(" R13 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR13));
     135    printk(" R14 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR14));
     136    printk(" R15 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR15));
     137    printk("  R16 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR16));
     138    printk(" R17 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR17));
     139    printk(" R18 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR18));
     140    printk(" R19 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR19));
     141    printk("  R20 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR20));
     142    printk(" R21 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR21));
     143    printk(" R22 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR22));
     144    printk(" R23 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR23));
     145    printk("  R24 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR24));
     146    printk(" R25 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR25));
     147    printk(" R26 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR26));
     148    printk(" R27 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR27));
     149    printk("  R28 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR28));
     150    printk(" R29 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR29));
     151    printk(" R30 = 0x%08" PRIx32 "", GET_GPR(excPtr->GPR30));
     152    printk(" R31 = 0x%08" PRIx32 "\n", GET_GPR(excPtr->GPR31));
    153153  } else {
    154154    printk("\n");
    155155  }
    156   printk("  CR  = 0x%08" PRIu32 "\n", excPtr->EXC_CR);
    157   printk("  CTR = 0x%08" PRIu32 "\n", excPtr->EXC_CTR);
    158   printk("  XER = 0x%08" PRIu32 "\n", excPtr->EXC_XER);
    159   printk("  LR  = 0x%08" PRIu32 "\n", excPtr->EXC_LR);
     156  printk("  CR  = 0x%08" PRIx32 "\n", excPtr->EXC_CR);
     157  printk("  CTR = 0x%08" PRIx32 "\n", excPtr->EXC_CTR);
     158  printk("  XER = 0x%08" PRIx32 "\n", excPtr->EXC_XER);
     159  printk("  LR  = 0x%08" PRIx32 "\n", excPtr->EXC_LR);
    160160
    161161  /* Would be great to print DAR but unfortunately,
     
    167167  if (ppc_exc_get_DAR != NULL) {
    168168    char* reg = ppc_cpu_is_60x() ? " DAR" : "DEAR";
    169     printk(" %s = 0x%08" PRIu32 "\n", reg, ppc_exc_get_DAR());
     169    printk(" %s = 0x%08" PRIx32 "\n", reg, ppc_exc_get_DAR());
    170170  }
    171171  if (ppc_cpu_is_bookE()) {
Note: See TracChangeset for help on using the changeset viewer.