Changeset cf85e24c in mainline for arch/ia32/src/interrupt.c


Ignore:
Timestamp:
2006-04-22T23:00:26Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
12c7f27
Parents:
e692a27
Message:

printf-related and other code cleanup

File:
1 edited

Legend:

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

    re692a27 rcf85e24c  
    6262                printf("----------------EXCEPTION OCCURED----------------\n");
    6363               
    64         printf("%%eip: %#X (%s)\n",istate->eip,symbol);
    65         printf("ERROR_WORD=%#X\n", istate->error_word);
    66         printf("%%cs=%#X,flags=%#X\n", istate->cs, istate->eflags);
    67         printf("%%eax=%#X, %%ecx=%#X, %%edx=%#X, %%esp=%#X\n",  istate->eax,istate->ecx,istate->edx,&istate->stack[0]);
     64        printf("%%eip: %#x (%s)\n",istate->eip,symbol);
     65        printf("ERROR_WORD=%#x\n", istate->error_word);
     66        printf("%%cs=%#x,flags=%#x\n", istate->cs, istate->eflags);
     67        printf("%%eax=%#x, %%ecx=%#x, %%edx=%#x, %%esp=%#x\n",  istate->eax,istate->ecx,istate->edx,&istate->stack[0]);
    6868#ifdef CONFIG_DEBUG_ALLREGS
    69         printf("%%esi=%#X, %%edi=%#X, %%ebp=%#X, %%ebx=%#X\n",  istate->esi,istate->edi,istate->ebp,istate->ebx);
     69        printf("%%esi=%#x, %%edi=%#x, %%ebp=%#x, %%ebx=%#x\n",  istate->esi,istate->edi,istate->ebp,istate->ebx);
    7070#endif
    71         printf("stack: %#X, %#X, %#X, %#X\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
    72         printf("       %#X, %#X, %#X, %#X\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
     71        printf("stack: %#x, %#x, %#x, %#x\n", istate->stack[0], istate->stack[1], istate->stack[2], istate->stack[3]);
     72        printf("       %#x, %#x, %#x, %#x\n", istate->stack[4], istate->stack[5], istate->stack[6], istate->stack[7]);
    7373}
    7474
     
    121121        if (!as_page_fault(page)) {
    122122                PRINT_INFO_ERRCODE(istate);
    123                 printf("page fault address: %#X\n", page);
     123                printf("page fault address: %#x\n", page);
    124124                panic("page fault\n");
    125125        }
Note: See TracChangeset for help on using the changeset viewer.