Changeset aac10f86 in mainline for kernel/generic/include/panic.h


Ignore:
Timestamp:
2008-06-03T14:56:47Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ac426e
Parents:
419886f6
Message:

LOG, LOG_EXEC() macros (used if CONFIG_EDEBUG is set)
cosmetic changes

File:
1 edited

Legend:

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

    r419886f6 raac10f86  
    3737
    3838#ifdef CONFIG_DEBUG
    39 #define panic(format, ...) \
    40     panic_printf("Kernel panic in %s() at %s on line %d: " format, __func__, \
    41     __FILE__, __LINE__, ##__VA_ARGS__);
     39#       define panic(format, ...) \
     40                panic_printf("Kernel panic in %s() at %s:%u: " format, __func__, \
     41                __FILE__, __LINE__, ##__VA_ARGS__);
    4242#else
    43 #define panic(format, ...) \
    44     panic_printf("Kernel panic: " format, ##__VA_ARGS__);
     43#       define panic(format, ...) \
     44                panic_printf("Kernel panic: " format, ##__VA_ARGS__);
    4545#endif
    4646
    47 extern void panic_printf(char *fmt, ...) __attribute__((noreturn)) ;
     47extern void panic_printf(char *fmt, ...) __attribute__((noreturn));
    4848
    4949#endif
Note: See TracChangeset for help on using the changeset viewer.