Date: Sun, 25 Aug 2013 12:44:04 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254854 - in head/sys: netinet netinet6 Message-ID: <201308251244.r7PCi4IQ077191@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sun Aug 25 12:44:03 2013 New Revision: 254854 URL: http://svnweb.freebsd.org/changeset/base/254854 Log: Provide human readable debug output. Modified: head/sys/netinet/sctp_input.c head/sys/netinet6/sctp6_usrreq.c Modified: head/sys/netinet/sctp_input.c ============================================================================== --- head/sys/netinet/sctp_input.c Sun Aug 25 12:27:15 2013 (r254853) +++ head/sys/netinet/sctp_input.c Sun Aug 25 12:44:03 2013 (r254854) @@ -6023,10 +6023,10 @@ sctp_input_with_port(struct mbuf *i_pak, } #endif SCTPDBG(SCTP_DEBUG_CRCOFFLOAD, - "sctp_input(): Packet of length %d received on %s with csum_flags 0x%x.\n", + "sctp_input(): Packet of length %d received on %s with csum_flags 0x%b.\n", m->m_pkthdr.len, if_name(m->m_pkthdr.rcvif), - (int)m->m_pkthdr.csum_flags); + (int)m->m_pkthdr.csum_flags, CSUM_BITS); if (m->m_flags & M_FLOWID) { mflowid = m->m_pkthdr.flowid; use_mflowid = 1; Modified: head/sys/netinet6/sctp6_usrreq.c ============================================================================== --- head/sys/netinet6/sctp6_usrreq.c Sun Aug 25 12:27:15 2013 (r254853) +++ head/sys/netinet6/sctp6_usrreq.c Sun Aug 25 12:44:03 2013 (r254854) @@ -109,10 +109,10 @@ sctp6_input_with_port(struct mbuf **i_pa } #endif SCTPDBG(SCTP_DEBUG_CRCOFFLOAD, - "sctp6_input(): Packet of length %d received on %s with csum_flags 0x%x.\n", + "sctp6_input(): Packet of length %d received on %s with csum_flags 0x%b.\n", m->m_pkthdr.len, if_name(m->m_pkthdr.rcvif), - (int)m->m_pkthdr.csum_flags); + (int)m->m_pkthdr.csum_flags, CSUM_BITS); if (m->m_flags & M_FLOWID) { mflowid = m->m_pkthdr.flowid; use_mflowid = 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308251244.r7PCi4IQ077191>