Changeset 371bd7d in mainline for kernel/generic/include/panic.h


Ignore:
Timestamp:
2010-03-27T09:22:17Z (16 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36a75a2
Parents:
cd82bb1 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    rcd82bb1 r371bd7d  
    2727 */
    2828
    29 /** @addtogroup generic 
     29/** @addtogroup generic
    3030 * @{
    3131 */
     
    3636#define KERN_PANIC_H_
    3737
     38#include <typedefs.h>
     39#include <stacktrace.h>
     40#include <print.h>
     41
    3842#ifdef CONFIG_DEBUG
    3943#       define panic(format, ...) \
    40                 panic_printf("Kernel panic in %s() at %s:%u: " format "\n", \
    41                 __func__, __FILE__, __LINE__, ##__VA_ARGS__);
     44                do { \
     45                        silent = false; \
     46                        printf("Kernel panic in %s() at %s:%u.\n", \
     47                            __func__, __FILE__, __LINE__); \
     48                        stack_trace(); \
     49                        panic_printf("Panic message: " format "\n", \
     50                            ##__VA_ARGS__);\
     51                } while (0)
    4252#else
    4353#       define panic(format, ...) \
    44                 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__);
     54                do { \
     55                        silent = false; \
     56                        panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); \
     57                } while (0)
    4558#endif
    4659
    47 extern void panic_printf(char *fmt, ...) __attribute__((noreturn));
     60extern bool silent;
     61
     62extern void panic_printf(const char *fmt, ...) __attribute__((noreturn));
    4863
    4964#endif
Note: See TracChangeset for help on using the changeset viewer.