1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 00:42:14 +00:00

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.)
This commit is contained in:
Andreas Kling 2021-02-20 17:21:53 +01:00
parent 4d9ce42532
commit efd4f66f36

View file

@ -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);