From efd4f66f361e1c38bd866183ed0d4b29fb1073c2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 20 Feb 2021 17:21:53 +0100 Subject: [PATCH] Kernel: Don't take debug logging lock in sprintf() This function doesn't write to the log, and so doesn't need to acquire the logging lock. (This is only used by GCC's name demangling thingy.) --- Kernel/kprintf.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/kprintf.cpp b/Kernel/kprintf.cpp index e195a6ae43..8f173e7350 100644 --- a/Kernel/kprintf.cpp +++ b/Kernel/kprintf.cpp @@ -105,7 +105,6 @@ extern "C" int sprintf(char* buffer, const char* fmt, ...); int sprintf(char* buffer, const char* fmt, ...) { - ScopedSpinLock lock(s_log_lock); va_list ap; va_start(ap, fmt); int ret = printf_internal(buffer_putch, buffer, fmt, ap);