[common] add DEBUG_FATAL

This commit is contained in:
Geoffrey McRae 2019-11-04 21:08:17 +11:00
parent 6ed4e23b80
commit 5e3a46beb9
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
B1-22-g0851ae6f14+1
B1-23-g6ed4e23b80+1

View File

@ -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)