aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-13 12:18:08 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-13 12:18:08 +0200
commit34ffa4de405d053ef4b53d58e1437f2e82d152b1 (patch)
tree7c0be634f0a8ecaba479f68ecb77ba4f7c74e9b3 /kernel/kapi
parent48b95e0b46e32f35ea6f16f41ab99286856292bf (diff)
downloadkernel-34ffa4de405d053ef4b53d58e1437f2e82d152b1.tar.xz
kernel-34ffa4de405d053ef4b53d58e1437f2e82d152b1.zip
kstd: make error_code formattable
Diffstat (limited to 'kernel/kapi')
-rw-r--r--kernel/kapi/system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kapi/system.cpp b/kernel/kapi/system.cpp
index 23dadd3a..629e5990 100644
--- a/kernel/kapi/system.cpp
+++ b/kernel/kapi/system.cpp
@@ -22,8 +22,8 @@ namespace kapi::system
[[gnu::weak]]
auto panic(std::string_view message, kstd::error_code error, std::source_location location) -> void
{
- kstd::println(kstd::print_sink::stderr, "[PANIC] in {} : {} ({}:{}) @ {}:{}", location.function_name(), message,
- error.category().name(), error.message(), location.file_name(), location.line());
+ kstd::println(kstd::print_sink::stderr, "[PANIC] in {} : {} ({}) @ {}:{}", location.function_name(), message, error,
+ location.file_name(), location.line());
cpu::halt();
}