svn commit: r311673 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Sun Jan 8 08:52:54 UTC 2017


Author: mav
Date: Sun Jan  8 08:52:53 2017
New Revision: 311673
URL: https://svnweb.freebsd.org/changeset/base/311673

Log:
  MFC r311446: Fix bootverbose affecting code logic in r294558.
  
  Reported by:    Jilles Tjoelker <jilles at stack.nl>

Modified:
  stable/10/sys/cam/ctl/ctl_ha.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl_ha.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl_ha.c	Sun Jan  8 08:52:16 2017	(r311672)
+++ stable/10/sys/cam/ctl/ctl_ha.c	Sun Jan  8 08:52:53 2017	(r311673)
@@ -443,8 +443,9 @@ ctl_ha_connect(struct ha_softc *softc)
 
 	memcpy(&sa, &softc->ha_peer_in, sizeof(sa));
 	error = soconnect(so, (struct sockaddr *)&sa, td);
-	if (error != 0 && bootverbose) {
-		printf("%s: soconnect() error %d\n", __func__, error);
+	if (error != 0) {
+		if (bootverbose)
+			printf("%s: soconnect() error %d\n", __func__, error);
 		goto out;
 	}
 	return (0);


More information about the svn-src-all mailing list