From 050a9aad942e91481033f2d67c50d3fd608596c2 Mon Sep 17 00:00:00 2001 From: suz Date: Tue, 29 Apr 2003 08:43:56 +0000 Subject: panic() doesn't need \n Obtained from: KAME MFC after: 2 days --- sys/netinet6/in6_cksum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netinet6/in6_cksum.c') 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 -- cgit v1.1