libc: core: print error message on assertion failure

This commit is contained in:
2026-05-31 17:20:00 +01:00
parent 64dd5d15a8
commit 474f228c98
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -1,3 +1,5 @@
#include <magenta/log.h>
#include <stdio.h>
#include <stdlib.h>
extern void __libc_assert_failed(
@@ -6,5 +8,6 @@ extern void __libc_assert_failed(
const char *func,
const char *cond)
{
kern_logf("ASSERT: %s failed (%s in %s:%d)", cond, func, file, line);
abort();
}