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);
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to