summaryrefslogtreecommitdiff
path: root/libmisc/assert.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-20 12:45:42 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-05-06 11:50:46 -0600
commit797a77fcc8655a641630758dc4022f215008f23b (patch)
tree0e485cb3a83ae7388a729b20f3aec617cb8e4bb1 /libmisc/assert.c
parent0fec22d4106ff6f80296d1511eec7a82160c2245 (diff)
libmisc: log.h: Add a "log_" prefix to errorf/infof/debugf
Diffstat (limited to 'libmisc/assert.c')
-rw-r--r--libmisc/assert.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmisc/assert.c b/libmisc/assert.c
index fdd8154..8bca524 100644
--- a/libmisc/assert.c
+++ b/libmisc/assert.c
@@ -7,7 +7,7 @@
#include <stdbool.h> /* for bool, true, false */
#define LOG_NAME ASSERT
-#include <libmisc/log.h> /* for errorf() */
+#include <libmisc/log.h> /* for log_errorf() */
#include <libmisc/assert.h>
@@ -19,10 +19,10 @@ void __assert_msg_fail(const char *expr,
static bool in_fail = false;
if (!in_fail) {
in_fail = true;
- errorf("%s:%u:%s(): assertion \"%s\" failed%s%s",
- file, line, func,
- expr,
- msg ? ": " : "", msg ?: "");
+ log_errorf("%s:%u:%s(): assertion \"%s\" failed%s%s",
+ file, line, func,
+ expr,
+ msg ? ": " : "", msg ?: "");
in_fail = false;
}
__lm_abort();