From a5f211c177395e70cd79acd72e14b9438bc95826 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Mon, 16 Sep 2024 15:32:12 +0200 Subject: [PATCH] fixing global compilation error --- Kanel/Runtime/Sources/Core/Logs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kanel/Runtime/Sources/Core/Logs.c b/Kanel/Runtime/Sources/Core/Logs.c index 03edbce..faf856b 100644 --- a/Kanel/Runtime/Sources/Core/Logs.c +++ b/Kanel/Runtime/Sources/Core/Logs.c @@ -22,7 +22,7 @@ void kbhWarningBackend(const char* format, const char* file, const char* functio { printf(KBH_ANSI_YELLOW "[kanel-CLI Warning]" KBH_ANSI_DEF " {in '%s;', line %u, '%s'} | ", file, line, function); va_list argptr; - va_start(argptr, fline); + va_start(argptr, line); vfprintf(stdout, format, argptr); va_end(argptr); putchar('\n'); @@ -32,7 +32,7 @@ void kbhErrorBackend(const char* format, const char* file, const char* function, { fprintf(stderr, KBH_ANSI_RED "[kanel-CLI Error]" KBH_ANSI_DEF " {in '%s;', line %u, '%s'} | ", file, line, function); va_list argptr; - va_start(argptr, fline); + va_start(argptr, line); vfprintf(stderr, format, argptr); va_end(argptr); putchar('\n'); @@ -42,7 +42,7 @@ void kbhFatalErrorBackend(const char* format, const char* file, const char* func { fprintf(stderr, KBH_ANSI_RED "[kanel-CLI Fatal Error]" KBH_ANSI_DEF " {in '%s;', line %u, '%s'} | ", file, line, function); va_list argptr; - va_start(argptr, fline); + va_start(argptr, line); vfprintf(stderr, format, argptr); va_end(argptr); putchar('\n'); @@ -56,7 +56,7 @@ void kbhDebugLogBackend(const char* format, ...) #else printf(KBH_ANSI_BLUE "[kanel-CLI Debug] " KBH_ANSI_DEF); va_list argptr; - va_start(argptr, fline); + va_start(argptr, line); vfprintf(stdout, format, argptr); va_end(argptr); putchar('\n');