Ignore:
File:
1 edited

Legend:

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

    rf36787d7 racc7ce4  
    6666void istate_decode(istate_t *istate)
    6767{
    68         printf("cs =%0#10" PRIx32 "\teip=%0#10" PRIx32 "\t"
    69             "efl=%0#10" PRIx32 "\terr=%0#10" PRIx32 "\n",
    70             istate->cs, istate->eip, istate->eflags, istate->error_word);
    71        
    72         printf("ds =%0#10" PRIx32 "\tes =%0#10" PRIx32 "\t"
    73             "fs =%0#10" PRIx32 "\tgs =%0#10" PRIx32 "\n",
     68        printf("cs =%#0" PRIx32 "\teip=%p\t"
     69            "efl=%#0" PRIx32 "\terr=%#0" PRIx32 "\n",
     70            istate->cs, (void *) istate->eip,
     71            istate->eflags, istate->error_word);
     72       
     73        printf("ds =%#0" PRIx32 "\tes =%#0" PRIx32 "\t"
     74            "fs =%#0" PRIx32 "\tgs =%#0" PRIx32 "\n",
    7475            istate->ds, istate->es, istate->fs, istate->gs);
    7576       
    7677        if (istate_from_uspace(istate))
    77                 printf("ss =%0#10" PRIx32 "\n", istate->ss);
    78        
    79         printf("eax=%0#10" PRIx32 "\tebx=%0#10" PRIx32 "\t"
    80             "ecx=%0#10" PRIx32 "\tedx=%0#10" PRIx32 "\n",
     78                printf("ss =%#0" PRIx32 "\n", istate->ss);
     79       
     80        printf("eax=%#0" PRIx32 "\tebx=%#0" PRIx32 "\t"
     81            "ecx=%#0" PRIx32 "\tedx=%#0" PRIx32 "\n",
    8182            istate->eax, istate->ebx, istate->ecx, istate->edx);
    8283       
    83         printf("esi=%0#10" PRIx32 "\tedi=%0#10" PRIx32 "\t"
    84             "ebp=%0#10" PRIx32 "\tesp=%0#10" PRIx32 "\n",
    85             istate->esi, istate->edi, istate->ebp,
    86             istate_from_uspace(istate) ? istate->esp :
    87             (uintptr_t) &istate->esp);
     84        printf("esi=%p\tedi=%p\tebp=%p\tesp=%p\n",
     85            (void *) istate->esi, (void *) istate->edi,
     86            (void *) istate->ebp,
     87            istate_from_uspace(istate) ? ((void *) istate->esp) :
     88            &istate->esp);
    8889}
    8990
Note: See TracChangeset for help on using the changeset viewer.