diff options
-rw-r--r-- | cddl/contrib/opensolaris/cmd/zdb/zdb.c | 4 |
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); } |