diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-13 12:18:08 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-13 12:18:08 +0200 |
| commit | 34ffa4de405d053ef4b53d58e1437f2e82d152b1 (patch) | |
| tree | 7c0be634f0a8ecaba479f68ecb77ba4f7c74e9b3 /kernel/kapi/system.cpp | |
| parent | 48b95e0b46e32f35ea6f16f41ab99286856292bf (diff) | |
| download | kernel-34ffa4de405d053ef4b53d58e1437f2e82d152b1.tar.xz kernel-34ffa4de405d053ef4b53d58e1437f2e82d152b1.zip | |
kstd: make error_code formattable
Diffstat (limited to 'kernel/kapi/system.cpp')
| -rw-r--r-- | kernel/kapi/system.cpp | 4 |
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(); } |
