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

Libc: Silence debug spam from strerror

Particularly noticeable in ports like openssl, which like to map the
entire error message set from 0 through 128 on startup.
This commit is contained in:
Jelle Raaijmakers 2021-06-11 12:03:00 +02:00 committed by Andreas Kling
parent 33c3c32a38
commit 527dc09542

View file

@ -377,7 +377,6 @@ int strerror_r(int errnum, char* buf, size_t buflen)
char* strerror(int errnum)
{
if (errnum < 0 || errnum >= EMAXERRNO) {
dbgln("strerror() missing string for errnum={}", errnum);
return const_cast<char*>("Unknown error");
}
return const_cast<char*>(sys_errlist[errnum]);