From ce2461d0e83e55f2f297212e872f0e3e0b77897a Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 30 Oct 2023 16:17:26 +0200 Subject: [PATCH] Kernel: panic takes arguments as rvalue references --- kernel/include/kernel/Panic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/include/kernel/Panic.h b/kernel/include/kernel/Panic.h index 74d82ecae0..4ef0f285ba 100644 --- a/kernel/include/kernel/Panic.h +++ b/kernel/include/kernel/Panic.h @@ -11,11 +11,11 @@ namespace Kernel::detail template __attribute__((__noreturn__)) - static void panic_impl(const char* file, int line, const char* message, Args... args) + static void panic_impl(const char* file, int line, const char* message, Args&&... args) { asm volatile("cli"); derrorln("Kernel panic at {}:{}", file, line); - derrorln(message, args...); + derrorln(message, BAN::forward(args)...); if (!g_paniced) { g_paniced = true;