summaryrefslogtreecommitdiff
path: root/src/user/lib/stdio
diff options
context:
space:
mode:
authordzwdz2022-09-03 23:41:17 +0200
committerdzwdz2022-09-03 23:41:17 +0200
commitd73c5ac9891ea3a88fa6a5ec1339df1f5cdf1a49 (patch)
treed7a6ea63772d9bcf2c27e9a6eaa4989f2ea1c175 /src/user/lib/stdio
parentecc54f4be44fa1fd1ce79b0458a04eef2667cba8 (diff)
user/libc: generate strerror from camellia/errno.h
Diffstat (limited to 'src/user/lib/stdio')
-rw-r--r--src/user/lib/stdio/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/lib/stdio/misc.c b/src/user/lib/stdio/misc.c
index a140ee4..45144f3 100644
--- a/src/user/lib/stdio/misc.c
+++ b/src/user/lib/stdio/misc.c
@@ -5,7 +5,7 @@
void perror(const char *s) {
if (s) fprintf(stderr, "%s: ", s);
- fprintf(stderr, "errno %d\n", errno);
+ fprintf(stderr, "%s\n", strerror(errno));
}
int puts(const char *s) {