Date: Thu, 5 Jan 2017 16:30:14 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r311446 - head/sys/cam/ctl Message-ID: <201701051630.v05GUEpf074749@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701051630.v05GUEpf074749>