Date: Fri, 26 Jan 2018 00:03:14 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328420 - head/sys/dev/cxgbe/common Message-ID: <201801260003.w0Q03EuN072418@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801260003.w0Q03EuN072418>