Changeset f651e80 in mainline for kernel/arch/mips32/src


Ignore:
Timestamp:
2009-01-08T12:07:38Z (17 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.

Location:
kernel/arch/mips32/src
Files:
4 edited

Legend:

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

    rc571f42 rf651e80  
    3939void cache_error(istate_t *istate)
    4040{
    41         panic("cache_error exception (epc=%p)\n", istate->epc);
     41        panic("cache_error exception (epc=%p).", istate->epc);
    4242}
    4343
  • kernel/arch/mips32/src/debugger.c

    rc571f42 rf651e80  
    317317        /* test branch delay slot */
    318318        if (cp0_cause_read() & 0x80000000)
    319                 panic("Breakpoint in branch delay slot not supported.\n");
     319                panic("Breakpoint in branch delay slot not supported.");
    320320
    321321        spinlock_lock(&bkpoint_lock);
  • kernel/arch/mips32/src/exception.c

    rc571f42 rf651e80  
    8989static void unhandled_exception(int n, istate_t *istate)
    9090{
    91         fault_if_from_uspace(istate, "Unhandled exception %s", exctable[n]);
     91        fault_if_from_uspace(istate, "Unhandled exception %s.", exctable[n]);
    9292       
    9393        print_regdump(istate);
    94         panic("Unhandled exception %s.\n", exctable[n]);
     94        panic("Unhandled exception %s.", exctable[n]);
    9595}
    9696
     
    133133                scheduler_fpu_lazy_request();
    134134        else {
    135                 fault_if_from_uspace(istate, "Unhandled Coprocessor Unusable Exception");
    136                 panic("Unhandled Coprocessor Unusable Exception.\n");
     135                fault_if_from_uspace(istate, "Unhandled Coprocessor Unusable Exception.");
     136                panic("Unhandled Coprocessor Unusable Exception.");
    137137        }
    138138}
     
    171171static void syscall_exception(int n, istate_t *istate)
    172172{
    173         panic("Syscall is handled through shortcut");
     173        panic("Syscall is handled through shortcut.");
    174174}
    175175
  • kernel/arch/mips32/src/mm/tlb.c

    rc571f42 rf651e80  
    116116                        return;
    117117                default:
    118                         panic("unexpected pfrc (%d)\n", pfrc);
     118                        panic("Unexpected pfrc (%d).", pfrc);
    119119                }
    120120        }
     
    200200                        return;
    201201                default:
    202                         panic("unexpected pfrc (%d)\n", pfrc);
     202                        panic("Unexpected pfrc (%d).", pfrc);
    203203                }
    204204        }
     
    283283                        return;
    284284                default:
    285                         panic("unexpected pfrc (%d)\n", pfrc);
     285                        panic("Unexpected pfrc (%d).", pfrc);
    286286                }
    287287        }
     
    331331                sym2 = s;
    332332
    333         fault_if_from_uspace(istate, "TLB Refill Exception on %p",
     333        fault_if_from_uspace(istate, "TLB Refill Exception on %p.",
    334334            cp0_badvaddr_read());
    335         panic("%x: TLB Refill Exception at %x(%s<-%s).\n", cp0_badvaddr_read(),
     335        panic("%x: TLB Refill Exception at %x(%s<-%s).", cp0_badvaddr_read(),
    336336            istate->epc, symbol, sym2);
    337337}
     
    345345        if (s)
    346346                symbol = s;
    347         fault_if_from_uspace(istate, "TLB Invalid Exception on %p",
     347        fault_if_from_uspace(istate, "TLB Invalid Exception on %p.",
    348348            cp0_badvaddr_read());
    349         panic("%x: TLB Invalid Exception at %x(%s).\n", cp0_badvaddr_read(),
     349        panic("%x: TLB Invalid Exception at %x(%s).", cp0_badvaddr_read(),
    350350            istate->epc, symbol);
    351351}
     
    358358        if (s)
    359359                symbol = s;
    360         fault_if_from_uspace(istate, "TLB Modified Exception on %p",
     360        fault_if_from_uspace(istate, "TLB Modified Exception on %p.",
    361361            cp0_badvaddr_read());
    362         panic("%x: TLB Modified Exception at %x(%s).\n", cp0_badvaddr_read(),
     362        panic("%x: TLB Modified Exception at %x(%s).", cp0_badvaddr_read(),
    363363            istate->epc, symbol);
    364364}
     
    434434                        break;
    435435                default:
    436                         panic("unexpected rc (%d)\n", rc);
     436                        panic("Unexpected rc (%d).", rc);
    437437                }
    438438               
Note: See TracChangeset for help on using the changeset viewer.