Ignore:
File:
1 edited

Legend:

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

    rf2f6636 rf651e80  
    3636#define KERN_PANIC_H_
    3737
    38 #include <stacktrace.h>
    39 #include <print.h>
    40 
    4138#ifdef CONFIG_DEBUG
    4239#       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__);
    5042#else
    5143#       define panic(format, ...) \
Note: See TracChangeset for help on using the changeset viewer.