Changeset f651e80 in mainline for kernel/arch/ia32/src/mm/page.c


Ignore:
Timestamp:
2009-01-08T12:07:38Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7447572
Parents:
c571f42
Message:

Make newlines in panic messages consistent. Add periods at end of messages so that it is obvious whether they are printed entirely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/mm/page.c

    rc571f42 rf651e80  
    8080{
    8181        if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH))
    82                 panic("Unable to map physical memory %p (%d bytes)", physaddr, size)
     82                panic("Unable to map physical memory %p (%d bytes).", physaddr, size)
    8383       
    8484        uintptr_t virtaddr = PA2KA(last_frame);
     
    102102               
    103103        if (istate->error_word & PFERR_CODE_RSVD)
    104                 panic("Reserved bit set in page directory.\n");
     104                panic("Reserved bit set in page directory.");
    105105
    106106        if (istate->error_word & PFERR_CODE_RW)
     
    110110       
    111111        if (as_page_fault(page, access, istate) == AS_PF_FAULT) {
    112                 fault_if_from_uspace(istate, "Page fault: %#x", page);
     112                fault_if_from_uspace(istate, "Page fault: %#x.", page);
    113113               
    114114                decode_istate(istate);
    115115                printf("page fault address: %#lx\n", page);
    116                 panic("page fault\n");
     116                panic("Page fault.");
    117117        }
    118118}
Note: See TracChangeset for help on using the changeset viewer.