From 5e3a46beb919d38e03a63e3ba91797dd997c2b3b Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 4 Nov 2019 21:08:17 +1100 Subject: [PATCH] [common] add DEBUG_FATAL --- VERSION | 2 +- common/include/common/debug.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 3caf231c..2ad7fc21 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-22-g0851ae6f14+1 \ No newline at end of file +B1-23-g6ed4e23b80+1 \ No newline at end of file diff --git a/common/include/common/debug.h b/common/include/common/debug.h index 4b205393..ad199bc9 100644 --- a/common/include/common/debug.h +++ b/common/include/common/debug.h @@ -53,6 +53,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA #define DEBUG_WARN(fmt, ...) DEBUG_PRINT("[W]", fmt, ##__VA_ARGS__) #define DEBUG_ERROR(fmt, ...) DEBUG_PRINT("[E]", fmt, ##__VA_ARGS__) #define DEBUG_FIXME(fmt, ...) DEBUG_PRINT("[F]", fmt, ##__VA_ARGS__) +#define DEBUG_FATAL(fmt, ...) do {DEBUG_PRINT("[C]", fmt, ##__VA_ARGS__); abort();} while (0) #if defined(DEBUG_SPICE) | defined(DEBUG_IVSHMEM) #define DEBUG_PROTO(fmt, args...) DEBUG_PRINT("[P]", fmt, ##args)