From d2ddd2f279733ec382941b85acd8557cb8f61ec9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 24 Mar 2021 22:18:41 +0100 Subject: Huge GUI improvements --- libc/print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/print.c b/libc/print.c index 7ebf7ca..2422fed 100644 --- a/libc/print.c +++ b/libc/print.c @@ -142,7 +142,8 @@ int log(const char *format, ...) int err(int code, const char *format, ...) { - log("ERRNO: %d (%s)\n", errno, strerror(errno)); + if (errno != EOK) + log("ERRNO: %d (%s)\n", errno, strerror(errno)); va_list ap; va_start(ap, format); vfprintf(PATH_ERR, format, ap); -- cgit v1.2.3