From 58c91f0a99434bf172dcf95f0fecd4157be1239f Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 13 Jul 2023 16:31:18 +0100 Subject: [PATCH] LibC: Remove duplicate log statement Now that warnln() also outputs to the debug console, this would print the error twice. --- Userland/Libraries/LibC/stdio.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibC/stdio.cpp b/Userland/Libraries/LibC/stdio.cpp index 4546a533c6..8289bfa6a1 100644 --- a/Userland/Libraries/LibC/stdio.cpp +++ b/Userland/Libraries/LibC/stdio.cpp @@ -1009,7 +1009,6 @@ int snprintf(char* buffer, size_t size, char const* fmt, ...) void perror(char const* s) { int saved_errno = errno; - dbgln("perror(): {}: {}", s, strerror(saved_errno)); warnln("{}: {}", s, strerror(saved_errno)); }