svn commit: r311446 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Thu Jan 5 16:30:15 UTC 2017
Author: mav
Date: Thu Jan 5 16:30:13 2017
New Revision: 311446
URL: https://svnweb.freebsd.org/changeset/base/311446
Log:
Fix bootverbose affecting code logic in r294558.
Reported by: Jilles Tjoelker <jilles at stack.nl>
Modified:
head/sys/cam/ctl/ctl_ha.c
Modified: head/sys/cam/ctl/ctl_ha.c
==============================================================================
--- head/sys/cam/ctl/ctl_ha.c Thu Jan 5 15:07:04 2017 (r311445)
+++ head/sys/cam/ctl/ctl_ha.c Thu Jan 5 16:30:13 2017 (r311446)
@@ -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-head
mailing list