mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +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
Notes:
sideshowbarker
2024-07-18 12:26:04 +09:00
Author: https://github.com/gmta
Commit: 527dc09542
Pull-request: https://github.com/SerenityOS/serenity/pull/7990
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