Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 11:02:37 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r264759 - user/pho/stress2/misc
Message-ID:  <201404221102.s3MB2bG8081013@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Tue Apr 22 11:02:37 2014
New Revision: 264759
URL: http://svnweb.freebsd.org/changeset/base/264759

Log:
  Fix typo in warn(3).
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/dup2.sh

Modified: user/pho/stress2/misc/dup2.sh
==============================================================================
--- user/pho/stress2/misc/dup2.sh	Tue Apr 22 10:41:15 2014	(r264758)
+++ user/pho/stress2/misc/dup2.sh	Tue Apr 22 11:02:37 2014	(r264759)
@@ -59,7 +59,7 @@ main(void)
 		fd2 = arc4random() % 1000000;
 		if (dup2(1, fd2) == -1) {
 			if (errno != EBADF) {
-				warn("dup2(2, %d)", fd2);
+				warn("dup2(1, %d)", fd2);
 				error = 1;
 				break;
 			}



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