From 2e89aa572be958de4ca7c207f96568195c4e0447 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Thu, 23 Jan 2025 14:59:24 -0800 Subject: [PATCH] Fix logger --- kernel/log.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/log.h b/kernel/log.h index 88e809eafa5..1e9d5dadc31 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -223,6 +223,8 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi if (!cond) { log("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line); log_flush(); + printf("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line); + raise(SIGABRT); } } #ifndef NDEBUG