1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

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

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