diff options
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r-- | src/kernel/system.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c index fd9a9b3..6ddae9c 100644 --- a/src/kernel/system.c +++ b/src/kernel/system.c @@ -71,11 +71,11 @@ void _panic(const char *f, const char *msg) halt_loop(); } -void _assert(const char *f, int x) +void _assert(const char *file, int line, const char *func, const char *exp) { - if (x == 0) { - _panic(f, "Assertion failed"); - } + cli(); + serial_printf(RED "%s:%d: %s: Assertion '%s' failed\n" RES, file, line, func, exp); + halt_loop(); } void halt_loop() |