Changeset f651e80 in mainline for kernel/generic/include


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/generic/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/debug.h

    rc571f42 rf651e80  
    5858#       define ASSERT(expr) \
    5959                if (!(expr)) { \
    60                         panic("assertion failed (%s), caller=%p\n", #expr, CALLER); \
     60                        panic("Assertion failed (%s), caller=%p.", #expr, CALLER); \
    6161                }
    6262#else
  • kernel/generic/include/panic.h

    rc571f42 rf651e80  
    3838#ifdef CONFIG_DEBUG
    3939#       define panic(format, ...) \
    40                 panic_printf("Kernel panic in %s() at %s:%u: " format, __func__, \
    41                 __FILE__, __LINE__, ##__VA_ARGS__);
     40                panic_printf("Kernel panic in %s() at %s:%u: " format "\n", \
     41                __func__, __FILE__, __LINE__, ##__VA_ARGS__);
    4242#else
    4343#       define panic(format, ...) \
    44                 panic_printf("Kernel panic: " format, ##__VA_ARGS__);
     44                panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__);
    4545#endif
    4646
Note: See TracChangeset for help on using the changeset viewer.