libc: core: print error message on assertion failure
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user