svn commit: r328420 - head/sys/dev/cxgbe/common
Navdeep Parhar
np at FreeBSD.org
Fri Jan 26 00:03:15 UTC 2018
Author: np
Date: Fri Jan 26 00:03:14 2018
New Revision: 328420
URL: https://svnweb.freebsd.org/changeset/base/328420
Log:
cxgbe(4): Do not display harmless warning in non-debug builds.
MFC after: 3 days
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/common/t4_hw.c
Modified: head/sys/dev/cxgbe/common/t4_hw.c
==============================================================================
--- head/sys/dev/cxgbe/common/t4_hw.c Thu Jan 25 23:38:05 2018 (r328419)
+++ head/sys/dev/cxgbe/common/t4_hw.c Fri Jan 26 00:03:14 2018 (r328420)
@@ -3752,8 +3752,10 @@ int t4_link_l1cfg(struct adapter *adap, unsigned int m
rcap = aneg | speed | fc | fec;
if ((rcap | lc->supported) != lc->supported) {
+#ifdef INVARIANTS
CH_WARN(adap, "rcap 0x%08x, pcap 0x%08x\n", rcap,
lc->supported);
+#endif
rcap &= lc->supported;
}
rcap |= mdi;
More information about the svn-src-head
mailing list