Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2017 08:52:16 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r311672 - stable/11/sys/cam/ctl
Message-ID:  <201701080852.v088qGMv082466@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Jan  8 08:52:16 2017
New Revision: 311672
URL: https://svnweb.freebsd.org/changeset/base/311672

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

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

Modified: stable/11/sys/cam/ctl/ctl_ha.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl_ha.c	Sun Jan  8 08:36:37 2017	(r311671)
+++ stable/11/sys/cam/ctl/ctl_ha.c	Sun Jan  8 08:52:16 2017	(r311672)
@@ -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);



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