Kernel: panic takes arguments as rvalue references

This commit is contained in:
Bananymous 2023-10-30 16:17:26 +02:00
parent 35f8f44510
commit 3f638f125e
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@ namespace Kernel::detail
template<typename... Args>
__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>(args)...);
if (!g_paniced)
{
g_paniced = true;