diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-29 11:55:47 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-29 11:57:20 +0100 |
| commit | d36487d9fd2c19b54a3b97bdf3562a17184711fe (patch) | |
| tree | 63c6d641925e7a78a9cb9ff89562c26b77b2bf3b /kernel/src/check/ubsan.c | |
| parent | 450b9160fdcdb0b770b316caf1d72ab893bc7aa5 (diff) | |
kernel panic
Diffstat (limited to 'kernel/src/check/ubsan.c')
| -rw-r--r-- | kernel/src/check/ubsan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/src/check/ubsan.c b/kernel/src/check/ubsan.c index 8a5f998..2e302bb 100644 --- a/kernel/src/check/ubsan.c +++ b/kernel/src/check/ubsan.c @@ -17,7 +17,7 @@ * Undefined behavior sanitizer runtime support. */ -#include <stdint.h> +#include <types.h> #include <libk/stdio.h> #include <libk/serial_stdio.h> #include <ubsan.h> @@ -53,10 +53,9 @@ static void ubsan_abort(const struct ubsan_source_location* location, if ( !location || !location->filename ) location = &unknown_location; - printf( + panic( "filename = %s; line = %d; column = %d; violation = %s;\n", location->filename, location->line, location->column, violation); - panic(); } #define ABORT_VARIANT(name, params, call) \ |
