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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to