summaryrefslogtreecommitdiffstats
path: root/bin/sh/show.c
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>1999-11-29 19:11:01 +0000
committercracauer <cracauer@FreeBSD.org>1999-11-29 19:11:01 +0000
commit903b2c868c14cd85dd3b2e2675969b9cb17f94ea (patch)
tree6ca499c12c2fb731744e3f10743e0e08fdad94e3 /bin/sh/show.c
parent80af32c97b108dacf6028b29ecae08e5da839113 (diff)
downloadFreeBSD-src-903b2c868c14cd85dd3b2e2675969b9cb17f94ea.zip
FreeBSD-src-903b2c868c14cd85dd3b2e2675969b9cb17f94ea.tar.gz
Include strerror(errno) in error messages after failed system calls.
Fix a warning.
Diffstat (limited to 'bin/sh/show.c')
-rw-r--r--bin/sh/show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/show.c b/bin/sh/show.c
index 620ffa4..b8c6f20b 100644
--- a/bin/sh/show.c
+++ b/bin/sh/show.c
@@ -420,7 +420,7 @@ opentrace() {
scopy("./trace", s);
#endif /* not_this_way */
if ((tracefile = fopen(s, "a")) == NULL) {
- fprintf(stderr, "Can't open %s\n", s);
+ fprintf(stderr, "Can't open %s: %s\n", s, strerror(errno));
return;
}
#ifdef O_APPEND
OpenPOWER on IntegriCloud