summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-11 12:03:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-11 12:09:58 +0200
commit527dc095421dc4e0b77e8745682c28a587c186b2 (patch)
tree72c47f03cb4183bdf44bf6d790c7f2e08e7e4ecc /Userland/Libraries/LibC
parent33c3c32a38935398af9812de8ec701912017b7b8 (diff)
downloadserenity-527dc095421dc4e0b77e8745682c28a587c186b2.zip
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.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/string.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/string.cpp b/Userland/Libraries/LibC/string.cpp
index 5adfe173ae..a2542507af 100644
--- a/Userland/Libraries/LibC/string.cpp
+++ b/Userland/Libraries/LibC/string.cpp
@@ -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]);