Changes in kernel/generic/include/panic.h [b8da2a3:f2f6636] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/panic.h
rb8da2a3 rf2f6636 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_PANIC_H_ 37 37 38 #include <typedefs.h>39 38 #include <stacktrace.h> 40 39 #include <print.h> … … 43 42 # define panic(format, ...) \ 44 43 do { \ 45 silent = false; \46 44 printf("Kernel panic in %s() at %s:%u.\n", \ 47 45 __func__, __FILE__, __LINE__); \ … … 52 50 #else 53 51 # define panic(format, ...) \ 54 do { \ 55 silent = false; \ 56 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); \ 57 } while (0) 52 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); 58 53 #endif 59 60 extern bool silent;61 54 62 55 extern void panic_printf(char *fmt, ...) __attribute__((noreturn));
Note:
See TracChangeset
for help on using the changeset viewer.