arch: add macros for dumping exceptions
Add macros for dumping exceptions depending on availablity of logging or printk. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
81fe171ce7
commit
58a3e7bded
@ -8,6 +8,12 @@
|
||||
#ifndef ZEPHYR_INCLUDE_ARCH_EXCEPTION_H_
|
||||
#define ZEPHYR_INCLUDE_ARCH_EXCEPTION_H_
|
||||
|
||||
#if defined(CONFIG_LOG)
|
||||
#define EXCEPTION_DUMP(...) LOG_ERR(__VA_ARGS__)
|
||||
#else
|
||||
#define EXCEPTION_DUMP(format, ...) printk(format "\n", ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_X86_64)
|
||||
#include <zephyr/arch/x86/intel64/exception.h>
|
||||
#elif defined(CONFIG_X86)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user