Changes in kernel/generic/include/panic.h [f2f6636:f651e80] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/panic.h
rf2f6636 rf651e80 36 36 #define KERN_PANIC_H_ 37 37 38 #include <stacktrace.h>39 #include <print.h>40 41 38 #ifdef CONFIG_DEBUG 42 39 # define panic(format, ...) \ 43 do { \ 44 printf("Kernel panic in %s() at %s:%u.\n", \ 45 __func__, __FILE__, __LINE__); \ 46 stack_trace(); \ 47 panic_printf("Panic message: " format "\n", \ 48 ##__VA_ARGS__);\ 49 } while (0) 40 panic_printf("Kernel panic in %s() at %s:%u: " format "\n", \ 41 __func__, __FILE__, __LINE__, ##__VA_ARGS__); 50 42 #else 51 43 # define panic(format, ...) \
Note:
See TracChangeset
for help on using the changeset viewer.