From 84aa08ed7acd2c05d99104039cec2215714959a2 Mon Sep 17 00:00:00 2001 From: Sympatron GmbH <35803463+Sympatron@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:35:30 +0100 Subject: [PATCH] Use global logger for asserts rather than printf --- include/utils/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/assert.h b/include/utils/assert.h index aa10b90..cafc502 100644 --- a/include/utils/assert.h +++ b/include/utils/assert.h @@ -14,7 +14,7 @@ extern "C" { #endif -#define __ASSERT_PRINT(fmt, ...) printf(fmt, ##__VA_ARGS__) +#define __ASSERT_PRINT(fmt, ...) __logger_log(NULL, LOG_EMERG, __FILE__, __LINE__, fmt, ##__VA_ARGS__) #define __ASSERT_LOC(test) \ __ASSERT_PRINT("ASSERTION FAIL [%s] @ %s:%d\n", \