aboutsummaryrefslogtreecommitdiff
path: root/libc/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/print.c')
-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);