aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-24 22:18:41 +0100
committerMarvin Borner2021-03-24 22:18:41 +0100
commitd2ddd2f279733ec382941b85acd8557cb8f61ec9 (patch)
treec41ce180bcc984c4e39033ec34eb1ca8789375ca /libc
parent48852d97c6a506b3876b139ceb7fde203b9205c2 (diff)
Huge GUI improvements
Diffstat (limited to 'libc')
-rw-r--r--libc/print.c3
1 files changed, 2 insertions, 1 deletions
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);