svn commit: r298110 - head/cddl/contrib/opensolaris/cmd/zdb
Baptiste Daroussin
bapt at FreeBSD.org
Sat Apr 16 12:32:27 UTC 2016
Author: bapt
Date: Sat Apr 16 12:32:26 2016
New Revision: 298110
URL: https://svnweb.freebsd.org/changeset/base/298110
Log:
Print error messages to stderr
Modified:
head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
Modified: head/cddl/contrib/opensolaris/cmd/zdb/zdb.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/zdb/zdb.c Sat Apr 16 12:14:44 2016 (r298109)
+++ head/cddl/contrib/opensolaris/cmd/zdb/zdb.c Sat Apr 16 12:32:26 2016 (r298110)
@@ -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);
}
More information about the svn-src-head
mailing list