From 440588f7535fcfa1890bbb79c6d55af05d4c9fc9 Mon Sep 17 00:00:00 2001 From: legendary-cookie <69702045+legendary-cookie@users.noreply.github.com> Date: Sun, 16 Apr 2023 00:07:42 +0200 Subject: [PATCH] Fix ubsan output (#53) --- firefly/kernel/trace/sanitizer/ubsan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firefly/kernel/trace/sanitizer/ubsan.cpp b/firefly/kernel/trace/sanitizer/ubsan.cpp index ed756b5..76826dc 100644 --- a/firefly/kernel/trace/sanitizer/ubsan.cpp +++ b/firefly/kernel/trace/sanitizer/ubsan.cpp @@ -95,7 +95,7 @@ static void tu_print_location(const char *message, struct tu_source_location loc using namespace firefly; logLine << "tinyubsan: " << message << " at file " << loc.file - << ", line " << fmt::dec << loc.file + << ", line " << fmt::dec << loc.line << ", column " << loc.column << '\n' << fmt::endl; } @@ -167,4 +167,4 @@ void __ubsan_handle_builtin_unreachable(struct tu_unreachable_data *data) { void __ubsan_handle_invalid_builtin(struct tu_invalid_builtin_data *data) { tu_print_location("invalid builtin", data->location); } -} \ No newline at end of file +}