diff options
author | Nayden Markatchev <nayden@cvs.openbsd.org> | 2019-11-29 16:41:03 +0000 |
---|---|---|
committer | Nayden Markatchev <nayden@cvs.openbsd.org> | 2019-11-29 16:41:03 +0000 |
commit | 589f09017887941a1afbd780f77b4d4dd18da2e4 (patch) | |
tree | 1bb500c85e933a2008cf6d5f49abc38445e09b3a /sys/netinet6/ip6_input.c | |
parent | 1a15c9043755c8389aea3c923af1f9343c98b117 (diff) |
add __func__ to panic() and printf() calls in sys/netinet6/*
ok benno@ mortimer@
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index ef84483a267..3383def8cd2 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.219 2019/08/21 15:32:18 florian Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.220 2019/11/29 16:41:01 nayden Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -144,7 +144,7 @@ ip6_init(void) pr = pffindproto(PF_INET6, IPPROTO_RAW, SOCK_RAW); if (pr == NULL) - panic("ip6_init"); + panic("%s", __func__); for (i = 0; i < IPPROTO_MAX; i++) ip6_protox[i] = pr - inet6sw; for (pr = inet6domain.dom_protosw; @@ -1204,7 +1204,7 @@ ip6_nexthdr(struct mbuf *m, int off, int proto, int *nxtp) /* just in case */ if (m == NULL) - panic("ip6_nexthdr: m == NULL"); + panic("%s: m == NULL", __func__); if ((m->m_flags & M_PKTHDR) == 0 || m->m_pkthdr.len < off) return -1; |