Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 20:21:10 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211971 - head/cddl/contrib/opensolaris/cmd/zfs
Message-ID:  <201008292021.o7TKLAGW073517@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Aug 29 20:21:10 2010
New Revision: 211971
URL: http://svn.freebsd.org/changeset/base/211971

Log:
  Print errors on stderr.
  
  MFC after:	2 weeks

Modified:
  head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c

Modified: head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c	Sun Aug 29 20:18:06 2010	(r211970)
+++ head/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c	Sun Aug 29 20:21:10 2010	(r211971)
@@ -1733,7 +1733,7 @@ zfs_do_userspace(int argc, char **argv)
 	 */
 	(void) execv(pypath, argv-1);
 
-	(void) printf("internal error: %s not found\n"
+	(void) fprintf(stderr, "internal error: %s not found\n"
 	    "falling back on built-in implementation, "
 	    "some features will not work\n", pypath);
 
@@ -3797,7 +3797,7 @@ static int
 zfs_do_python(int argc, char **argv)
 {
 	(void) execv(pypath, argv-1);
-	(void) printf("internal error: %s not found\n", pypath);
+	(void) fprintf(stderr, "internal error: %s not found\n", pypath);
 	return (-1);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008292021.o7TKLAGW073517>