mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05: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:
parent
33c3c32a38
commit
527dc09542
1 changed files with 0 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue