diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-19 11:46:46 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-19 11:46:46 +0100 |
| commit | de96b0588ab680e1002c12df7ea7900d7eb71cf8 (patch) | |
| tree | 41728f4f5c77a4d96dc3d89096483dfee75b3482 /kernel/src/kapi/system.cpp | |
| parent | 266dde7d535d997a45f6eef41e44ebcaa516b75a (diff) | |
| download | teachos-de96b0588ab680e1002c12df7ea7900d7eb71cf8.tar.xz teachos-de96b0588ab680e1002c12df7ea7900d7eb71cf8.zip | |
kstd: move println to kstd
Diffstat (limited to 'kernel/src/kapi/system.cpp')
| -rw-r--r-- | kernel/src/kapi/system.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kernel/src/kapi/system.cpp b/kernel/src/kapi/system.cpp index 1cca82e..cdde049 100644 --- a/kernel/src/kapi/system.cpp +++ b/kernel/src/kapi/system.cpp @@ -1,8 +1,9 @@ #include "kapi/system.hpp" -#include "kapi/cio.hpp" #include "kapi/cpu.hpp" +#include <kstd/print> + #include <source_location> #include <string_view> @@ -12,8 +13,8 @@ namespace teachos::system [[gnu::weak]] auto panic(std::string_view message, std::source_location location) -> void { - cio::println_error("[PANIC] in {} : {} @ {}:{}", location.function_name(), message, location.file_name(), - location.line()); + kstd::println(kstd::print_sink::stderr, "[PANIC] in {} : {} @ {}:{}", location.function_name(), message, + location.file_name(), location.line()); cpu::halt(); } |
