svn commit: r311672 - stable/11/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sun Jan 8 08:52:18 UTC 2017
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 at 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);
More information about the svn-src-stable
mailing list