Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 682cfceb in mainline


Ignore:
Timestamp:
2011-05-12T18:09:28Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
7b90778, 82d56184
Parents:
8469c53
Message:

Fix formatting of ppc32 istate_decode().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/interrupt.c

    r8469c53 r682cfceb  
    5454void istate_decode(istate_t *istate)
    5555{
    56         printf("r0 =%#0" PRIx32 "\tr1 =%p\tr2 =%#0" PRIx32 "\n",
    57             istate->r0, (void *) istate->sp, istate->r2);
     56        printf("r0 =%0#10" PRIx32 "\tr1 =%0#10" PRIx32 "\t"
     57            "r2 =%0#10" PRIx32 "\n", istate->r0, istate->sp, istate->r2);
    5858       
    59         printf("r3 =%#0" PRIx32 "\tr4 =%#0" PRIx32 "\tr5 =%#0" PRIx32 "\n",
    60             istate->r3, istate->r4, istate->r5);
     59        printf("r3 =%0#10" PRIx32 "\tr4 =%0#10" PRIx32 "\t"
     60            "r5 =%0#10" PRIx32 "\n", istate->r3, istate->r4, istate->r5);
    6161       
    62         printf("r6 =%#0" PRIx32 "\tr7 =%#0" PRIx32 "\tr8 =%#0" PRIx32 "\n",
    63             istate->r6, istate->r7, istate->r8);
     62        printf("r6 =%0#10" PRIx32 "\tr7 =%0#10" PRIx32 "\t"
     63            "r8 =%0#10" PRIx32 "\n", istate->r6, istate->r7, istate->r8);
    6464       
    65         printf("r9 =%#0" PRIx32 "\tr10=%#0" PRIx32 "\tr11=%#0" PRIx32 "\n",
    66             istate->r9, istate->r10, istate->r11);
     65        printf("r9 =%0#10" PRIx32 "\tr10=%0#10" PRIx32 "\t"
     66            "r11=%0#10" PRIx32 "\n", istate->r9, istate->r10, istate->r11);
    6767       
    68         printf("r12=%#0" PRIx32 "\tr13=%#0" PRIx32 "\tr14=%#0" PRIx32 "\n",
    69             istate->r12, istate->r13, istate->r14);
     68        printf("r12=%0#10" PRIx32 "\tr13=%0#10" PRIx32 "\t"
     69            "r14=%0#10" PRIx32 "\n", istate->r12, istate->r13, istate->r14);
    7070       
    71         printf("r15=%#0" PRIx32 "\tr16=%#0" PRIx32 "\tr17=%#0" PRIx32 "\n",
    72             istate->r15, istate->r16, istate->r17);
     71        printf("r15=%0#10" PRIx32 "\tr16=%0#10" PRIx32 "\t"
     72            "r17=%0#10" PRIx32 "\n", istate->r15, istate->r16, istate->r17);
    7373       
    74         printf("r18=%#0" PRIx32 "\tr19=%#0" PRIx32 "\tr20=%#0" PRIx32 "\n",
    75             istate->r18, istate->r19, istate->r20);
     74        printf("r18=%0#10" PRIx32 "\tr19=%0#10" PRIx32 "\t"
     75            "r20=%0#10" PRIx32 "\n", istate->r18, istate->r19, istate->r20);
    7676       
    77         printf("r21=%#0" PRIx32 "\tr22=%#0" PRIx32 "\tr23=%#0" PRIx32 "\n",
    78             istate->r21, istate->r22, istate->r23);
     77        printf("r21=%0#10" PRIx32 "\tr22=%0#10" PRIx32 "\t"
     78            "r23=%0#10" PRIx32 "\n", istate->r21, istate->r22, istate->r23);
    7979       
    80         printf("r24=%#0" PRIx32 "\tr25=%#0" PRIx32 "\tr26=%#0" PRIx32 "\n",
    81             istate->r24, istate->r25, istate->r26);
     80        printf("r24=%0#10" PRIx32 "\tr25=%0#10" PRIx32 "\t"
     81            "r26=%0#10" PRIx32 "\n", istate->r24, istate->r25, istate->r26);
    8282       
    83         printf("r27=%#0" PRIx32 "\tr28=%#0" PRIx32 "\tr29=%#0" PRIx32 "\n",
    84             istate->r27, istate->r28, istate->r29);
     83        printf("r27=%0#10" PRIx32 "\tr28=%0#10" PRIx32 "\t"
     84            "r29=%0#10" PRIx32 "\n", istate->r27, istate->r28, istate->r29);
    8585       
    86         printf("r30=%#0" PRIx32 "\tr31=%#0" PRIx32 "\n",
     86        printf("r30=%0#10" PRIx32 "\tr31=%0#10" PRIx32 "\n",
    8787            istate->r30, istate->r31);
    8888       
    89         printf("cr =%#0" PRIx32 "\tpc =%p\tlr =%p\n",
    90             istate->cr, (void *) istate->pc, (void *) istate->lr);
     89        printf("cr =%0#10" PRIx32 "\tpc =%0#10" PRIx32 "\t"
     90            "lr =%0#10" PRIx32 "\n", istate->cr, istate->pc, istate->lr);
    9191       
    92         printf("ctr=%#0" PRIx32 "\txer=%#0" PRIx32 "\tdar=%#0" PRIx32 "\n",
    93             istate->ctr, istate->xer, istate->dar);
     92        printf("ctr=%0#10" PRIx32 "\txer=%0#10" PRIx32 "\t"
     93            "dar=%0#10" PRIx32 "\n", istate->ctr, istate->xer, istate->dar);
    9494       
    95         printf("srr1=%p\n", (void *) istate->srr1);
     95        printf("srr1=%0#10" PRIx32 "\n", istate->srr1);
    9696}
    9797
Note: See TracChangeset for help on using the changeset viewer.