summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-04-16 12:32:26 +0000
committerbapt <bapt@FreeBSD.org>2016-04-16 12:32:26 +0000
commit6a3bf4fe17acd8740c761dbeba19407a21635508 (patch)
tree6c06bb54c4a9e94a136c0bfa86ca8b2382a71f54 /cddl
parentf576b52aa0a921be7895766367552479f621b662 (diff)
downloadFreeBSD-src-6a3bf4fe17acd8740c761dbeba19407a21635508.zip
FreeBSD-src-6a3bf4fe17acd8740c761dbeba19407a21635508.tar.gz
Print error messages to stderr
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/zdb/zdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zdb/zdb.c b/cddl/contrib/opensolaris/cmd/zdb/zdb.c
index 64e5cbd..7157d58 100644
--- a/cddl/contrib/opensolaris/cmd/zdb/zdb.c
+++ b/cddl/contrib/opensolaris/cmd/zdb/zdb.c
@@ -2084,13 +2084,13 @@ dump_cachefile(const char *cachefile)
nvlist_t *config;
if ((fd = open64(cachefile, O_RDONLY)) < 0) {
- (void) printf("cannot open '%s': %s\n", cachefile,
+ (void) fprintf(stderr, "cannot open '%s': %s\n", cachefile,
strerror(errno));
exit(1);
}
if (fstat64(fd, &statbuf) != 0) {
- (void) printf("failed to stat '%s': %s\n", cachefile,
+ (void) fprintf(stderr, "failed to stat '%s': %s\n", cachefile,
strerror(errno));
exit(1);
}
OpenPOWER on IntegriCloud