Module Name:    src
Committed By:   maxv
Date:           Sun Aug  2 07:19:39 UTC 2020

Modified Files:
        src/sys/net: bpf.c

Log Message:
Use a more informative panic message.


To generate a diff of this commit:
cvs rdiff -u -r1.237 -r1.238 src/sys/net/bpf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/bpf.c
diff -u src/sys/net/bpf.c:1.237 src/sys/net/bpf.c:1.238
--- src/sys/net/bpf.c:1.237	Thu Jun 11 13:36:20 2020
+++ src/sys/net/bpf.c	Sun Aug  2 07:19:39 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: bpf.c,v 1.237 2020/06/11 13:36:20 roy Exp $	*/
+/*	$NetBSD: bpf.c,v 1.238 2020/08/02 07:19:39 maxv Exp $	*/
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.237 2020/06/11 13:36:20 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.238 2020/08/02 07:19:39 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_bpf.h"
@@ -2118,7 +2118,7 @@ _bpfattach(struct ifnet *ifp, u_int dlt,
 	struct bpf_if *bp;
 	bp = kmem_alloc(sizeof(*bp), KM_NOSLEEP);
 	if (bp == NULL)
-		panic("bpfattach");
+		panic("%s: out of memory", __func__);
 
 	mutex_enter(&bpf_mtx);
 	bp->bif_driverp = driverp;

Reply via email to