From 73a36ffda30b539f6bbbba82cc0aad544142315d Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 3 Mar 2025 05:18:48 -0500 Subject: [PATCH] Add `fflush(stdout);` before `abort` call Fixes #2318 --- include/debug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/debug.h b/include/debug.h index e7cbdb5c..372db494 100644 --- a/include/debug.h +++ b/include/debug.h @@ -331,6 +331,7 @@ static inline const char *colorfilter(const char *x) { "\n[-] PROGRAM ABORT : " cRST x); \ SAYF(cLRD "\n Stop location : " cRST "%s(), %s:%u\n\n", __func__, \ __FILE__, (u32)__LINE__); \ + fflush(stdout); \ abort(); \ \ } while (0)