diff options
author | Marvin Borner | 2021-03-21 12:40:41 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-21 12:46:08 +0100 |
commit | 09c3bdb186868204cb03d457244e05e12eb685d6 (patch) | |
tree | 7bf59794173d700df08ad303acd6c5a49193a9eb /libc/print.c | |
parent | 68a0ad7f21ba07b93cd63613996e27afd8780f9c (diff) |
Hardened syscalls
Diffstat (limited to 'libc/print.c')
-rw-r--r-- | libc/print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/print.c b/libc/print.c index 1d58f0a..7ebf7ca 100644 --- a/libc/print.c +++ b/libc/print.c @@ -142,6 +142,7 @@ int log(const char *format, ...) int err(int code, const char *format, ...) { + log("ERRNO: %d (%s)\n", errno, strerror(errno)); va_list ap; va_start(ap, format); vfprintf(PATH_ERR, format, ap); |