Skip to content

Commit

Permalink
Use global logger for asserts rather than printf
Browse files Browse the repository at this point in the history
  • Loading branch information
Sympatron committed Oct 30, 2024
1 parent 631583c commit 84aa08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/utils/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -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", \
Expand Down

0 comments on commit 84aa08e

Please sign in to comment.