Rev 1 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 68 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __PANIC_H__ |
29 | #ifndef __PANIC_H__ |
30 | #define __PANIC_H__ |
30 | #define __PANIC_H__ |
31 | 31 | ||
32 | #define PANIC "KERNEL PANIC: " |
32 | #ifndef NDEBUG |
- | 33 | # define panic(format, ...) panic_printf("Kernel panic in %s() at %s on line %d: " format, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__); |
|
- | 34 | #else |
|
- | 35 | # define panic(format, ...) panic_printf("Kernel panic: " format, ##__VA_ARGS__); |
|
- | 36 | #endif |
|
33 | 37 | ||
34 | extern void panic(char *fmt, ...); |
38 | extern void panic_printf(char *fmt, ...); |
35 | 39 | ||
36 | #endif |
40 | #endif |