summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-15 14:31:00 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-15 14:31:00 +0000
commit73b336ea71d5e9c6ade48347038d14153c4e7842 (patch)
tree52b8281e5f76917a442c683ac8518e4725f1b1d1 /sys/netinet
parent94bb9ffeb1f5b5e747d48905005375ac0b6b7930 (diff)
Use __func__ in panic strings to reduce noise when grepping.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 5fa4881a43f..13f42eeeb15 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.330 2016/11/07 09:08:05 mpi Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.331 2016/11/15 14:30:59 mpi Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -3441,7 +3441,7 @@ syn_cache_insert(struct syn_cache *sc, struct tcpcb *tp)
* entry in our bucket.
*/
if (sc2 == NULL)
- panic("syn_cache_insert: bucketoverflow: impossible");
+ panic("%s: bucketoverflow: impossible", __func__);
#endif
syn_cache_rm(sc2);
syn_cache_put(sc2);
@@ -3472,8 +3472,8 @@ syn_cache_insert(struct syn_cache *sc, struct tcpcb *tp)
* non-empty bucket.
*/
if (scp2 == scp)
- panic("syn_cache_insert: cacheoverflow: "
- "impossible");
+ panic("%s: cacheoverflow: impossible",
+ __func__);
#endif
}
sc2 = TAILQ_FIRST(&scp2->sch_bucket);