diff options
author | suz <suz@FreeBSD.org> | 2003-04-29 08:43:56 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2003-04-29 08:43:56 +0000 |
commit | 050a9aad942e91481033f2d67c50d3fd608596c2 (patch) | |
tree | 1da8ebd8be94151830657355dc4885b2b982bd95 /sys/netinet6/in6_cksum.c | |
parent | 373ef8a1bd1e2ee8ff0e405b7e4a9f1e96190950 (diff) | |
download | FreeBSD-src-050a9aad942e91481033f2d67c50d3fd608596c2.zip FreeBSD-src-050a9aad942e91481033f2d67c50d3fd608596c2.tar.gz |
panic() doesn't need \n
Obtained from: KAME
MFC after: 2 days
Diffstat (limited to 'sys/netinet6/in6_cksum.c')
-rw-r--r-- | sys/netinet6/in6_cksum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/in6_cksum.c b/sys/netinet6/in6_cksum.c index 170fe2e..049c60d 100644 --- a/sys/netinet6/in6_cksum.c +++ b/sys/netinet6/in6_cksum.c @@ -103,7 +103,7 @@ in6_cksum(m, nxt, off, len) #if 0 int srcifid = 0, dstifid = 0; #endif - struct ip6_hdr *ip6; + struct ip6_hdr *ip6; union { u_int16_t phs[4]; struct { @@ -123,7 +123,7 @@ in6_cksum(m, nxt, off, len) /* sanity check */ if (m->m_pkthdr.len < off + len) { - panic("in6_cksum: mbuf len (%d) < off+len (%d+%d)\n", + panic("in6_cksum: mbuf len (%d) < off+len (%d+%d)", m->m_pkthdr.len, off, len); } @@ -236,7 +236,7 @@ in6_cksum(m, nxt, off, len) /* * Lastly calculate a summary of the rest of mbufs. */ - + for (;m && len; m = m->m_next) { if (m->m_len == 0) continue; @@ -308,7 +308,7 @@ in6_cksum(m, nxt, off, len) s_util.c[0] = *(char *)w; } if (len) - panic("in6_cksum: out of data\n"); + panic("in6_cksum: out of data"); if (mlen == -1) { /* The last mbuf has odd # of bytes. Follow the standard (the odd byte may be shifted left by 8 bits |