LibC: Remove duplicate log statement

Now that warnln() also outputs to the debug console, this would print
the error twice.
This commit is contained in:
Sam Atkins 2023-07-13 16:31:18 +01:00 committed by Jelle Raaijmakers
parent e0b7717a6a
commit 58c91f0a99
Notes: sideshowbarker 2024-07-17 07:38:17 +09:00

View File

@ -1009,7 +1009,6 @@ int snprintf(char* buffer, size_t size, char const* fmt, ...)
void perror(char const* s)
{
int saved_errno = errno;
dbgln("perror(): {}: {}", s, strerror(saved_errno));
warnln("{}: {}", s, strerror(saved_errno));
}