Changeset 41a7f62 in mainline


Ignore:
Timestamp:
2010-11-28T01:46:14Z (14 years ago)
Author:
martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7329e6a, 8c2b3ef, ab3a851, ba519f7, e4d540b
Parents:
f0e1ac9
Message:

align register printout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/exception.c

    rf0e1ac9 r41a7f62  
    7474void istate_decode(istate_t *istate)
    7575{
    76         printf("epc=%p\tsta=%#0" PRIx32 "\t"
    77             "lo =%#0" PRIx32 "\thi =%#0" PRIx32 "\n",
     76        printf("epc=%p\tsta=%#010" PRIx32 "\t"
     77            "lo =%#010" PRIx32 "\thi =%#010" PRIx32 "\n",
    7878            (void *) istate->epc, istate->status,
    7979            istate->lo, istate->hi);
    8080       
    81         printf("a0 =%#0" PRIx32 "\ta1 =%#0" PRIx32 "\t"
    82             "a2 =%#0" PRIx32 "\ta3 =%#0" PRIx32 "\n",
     81        printf("a0 =%#010" PRIx32 "\ta1 =%#010" PRIx32 "\t"
     82            "a2 =%#010" PRIx32 "\ta3 =%#010" PRIx32 "\n",
    8383            istate->a0, istate->a1, istate->a2, istate->a3);
    8484       
    85         printf("t0 =%#0" PRIx32 "\tt1 =%#0" PRIx32 "\t"
    86             "t2 =%#0" PRIx32 "\tt3 =%#0" PRIx32 "\n",
     85        printf("t0 =%#010" PRIx32 "\tt1 =%#010" PRIx32 "\t"
     86            "t2 =%#010" PRIx32 "\tt3 =%#010" PRIx32 "\n",
    8787            istate->t0, istate->t1, istate->t2, istate->t3);
    8888       
    89         printf("t4 =%#0" PRIx32 "\tt5 =%#0" PRIx32 "\t"
    90             "t6 =%#0" PRIx32 "\tt7 =%#0" PRIx32 "\n",
     89        printf("t4 =%#010" PRIx32 "\tt5 =%#010" PRIx32 "\t"
     90            "t6 =%#010" PRIx32 "\tt7 =%#010" PRIx32 "\n",
    9191            istate->t4, istate->t5, istate->t6, istate->t7);
    9292       
    93         printf("t8 =%#0" PRIx32 "\tt9 =%#0" PRIx32 "\t"
    94             "v0 =%#0" PRIx32 "\tv1 =%#0" PRIx32 "\n",
     93        printf("t8 =%#010" PRIx32 "\tt9 =%#010" PRIx32 "\t"
     94            "v0 =%#010" PRIx32 "\tv1 =%#010" PRIx32 "\n",
    9595            istate->t8, istate->t9, istate->v0, istate->v1);
    9696       
    97         printf("s0 =%#0" PRIx32 "\ts1 =%#0" PRIx32 "\t"
    98             "s2 =%#0" PRIx32 "\ts3 =%#0" PRIx32 "\n",
     97        printf("s0 =%#010" PRIx32 "\ts1 =%#010" PRIx32 "\t"
     98            "s2 =%#010" PRIx32 "\ts3 =%#010" PRIx32 "\n",
    9999            istate->s0, istate->s1, istate->s2, istate->s3);
    100100       
    101         printf("s4 =%#0" PRIx32 "\ts5 =%#0" PRIx32 "\t"
    102             "s6 =%#0" PRIx32 "\ts7 =%#0" PRIx32 "\n",
     101        printf("s4 =%#010" PRIx32 "\ts5 =%#010" PRIx32 "\t"
     102            "s6 =%#010" PRIx32 "\ts7 =%#010" PRIx32 "\n",
    103103            istate->s4, istate->s5, istate->s6, istate->s7);
    104104       
    105         printf("s8 =%#0" PRIx32 "\tat =%#0" PRIx32 "\t"
    106             "kt0=%#0" PRIx32 "\tkt1=%#0" PRIx32 "\n",
     105        printf("s8 =%#010" PRIx32 "\tat =%#010" PRIx32 "\t"
     106            "kt0=%#010" PRIx32 "\tkt1=%#010" PRIx32 "\n",
    107107            istate->s8, istate->at, istate->kt0, istate->kt1);
    108108       
Note: See TracChangeset for help on using the changeset viewer.