diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-08-29 10:53:39 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-08-29 10:53:39 +0200 |
| commit | 0824a76b4f7294a74f4728084ca13070a4c8e7da (patch) | |
| tree | 94804942a9119ad8666f7b3cdf6b2f80503a2a93 /kernel/kapi/memory.cpp | |
| parent | 1e24d2b3cd4315fff4177c593bcfeef5b354f612 (diff) | |
| download | kernel-0824a76b4f7294a74f4728084ca13070a4c8e7da.tar.xz kernel-0824a76b4f7294a74f4728084ca13070a4c8e7da.zip | |
chore: normalize panic messages
Diffstat (limited to 'kernel/kapi/memory.cpp')
| -rw-r--r-- | kernel/kapi/memory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/kapi/memory.cpp b/kernel/kapi/memory.cpp index a0445645..1c6fa2c8 100644 --- a/kernel/kapi/memory.cpp +++ b/kernel/kapi/memory.cpp @@ -27,17 +27,17 @@ namespace kapi::memory auto allocate_many(std::size_t) noexcept -> std::optional<std::pair<frame, std::size_t>> override { - system::panic("Tried to allocate frames without an active allocator."); + system::panic("[OS:MEM] Tried to allocate frames without an active allocator."); } auto mark_used(frame) -> void override { - system::panic("Tried to mark frame as used without an active allocator."); + system::panic("[OS:MEM] Tried to mark frame as used without an active allocator."); } auto release_many(std::pair<frame, std::size_t>) -> void override { - system::panic("Tried to release frames without an active allocator."); + system::panic("[OS:MEM] Tried to release frames without an active allocator."); } }; @@ -47,12 +47,12 @@ namespace kapi::memory auto map(page, frame, flags) -> std::byte * override { - system::panic("Tried to map a page without an active mapper."); + system::panic("[OS:MEM] Tried to map a page without an active mapper."); } auto unmap(page) -> void override { - system::panic("Tried to unmap a page without an active mapper."); + system::panic("[OS:MEM] Tried to unmap a page without an active mapper."); } auto try_unmap(page) noexcept -> bool override |
