From 5ba212fe7123d454414f64d42ec7ff0822458c13 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Sat, 25 Feb 2023 07:26:22 +0100 Subject: ANSI C: // -> /* */ --- kernel/src/check/panic.c | 2 +- kernel/src/check/ubsan.c | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'kernel/src/check') diff --git a/kernel/src/check/panic.c b/kernel/src/check/panic.c index 7cfaa56..66a73c7 100644 --- a/kernel/src/check/panic.c +++ b/kernel/src/check/panic.c @@ -9,7 +9,7 @@ __attribute__((noreturn)) void panic(const char *s, ...) { set_color(&main_fb, RED, BLACK); printf("KERNEL PANIC\n"); - // set_color(&main_fb, WHITE, BLACK); + /* set_color(&main_fb, WHITE, BLACK); */ va_list list; va_start(list, s); vprintf(s, list); diff --git a/kernel/src/check/ubsan.c b/kernel/src/check/ubsan.c index dc6c4b4..eb7721e 100644 --- a/kernel/src/check/ubsan.c +++ b/kernel/src/check/ubsan.c @@ -247,10 +247,11 @@ void __ubsan_handle_vla_bound_not_positive(void *data_raw, void *bound_raw) ABORT_VARIANT_VP_VP(vla_bound_not_positive); struct ubsan_float_cast_overflow_data { - // TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The - // GCC developers accidentally forgot the source location. Their - // libubsan probes to see if it looks like a path, but we don't need - // to maintain compatibility with multiple gcc releases. See below. + /* TODO: Remove this GCC 5.x compatibility after switching to GCC 6.x. The + * GCC developers accidentally forgot the source location. Their + * libubsan probes to see if it looks like a path, but we don't need + * to maintain compatibility with multiple gcc releases. See below. + */ #if !(defined(__GNUC__) && __GNUC__ < 6) struct ubsan_source_location location; #endif @@ -324,8 +325,9 @@ struct ubsan_nonnull_arg_data { struct ubsan_source_location attr_location; }; -// TODO: GCC's libubsan does not have the second parameter, but its builtin -// somehow has it and conflict if we don't match it. +/* TODO: GCC's libubsan does not have the second parameter, but its builtin + * somehow has it and conflict if we don't match it. + */ void __ubsan_handle_nonnull_arg(void *data_raw, intptr_t index_raw) { struct ubsan_nonnull_arg_data *data = -- cgit v1.2.3