From 527dc095421dc4e0b77e8745682c28a587c186b2 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Fri, 11 Jun 2021 12:03:00 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibC/string.cpp | 1 - 1 file changed, 1 deletion(-) 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("Unknown error"); } return const_cast(sys_errlist[errnum]);