Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Use a more informative panic message.



details:   https://anonhg.NetBSD.org/src/rev/043c5d50032a
branches:  trunk
changeset: 936704:043c5d50032a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Aug 02 07:19:39 2020 +0000

description:
Use a more informative panic message.

diffstat:

 sys/net/bpf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e117fe0f7292 -r 043c5d50032a sys/net/bpf.c
--- a/sys/net/bpf.c     Sun Aug 02 07:15:05 2020 +0000
+++ b/sys/net/bpf.c     Sun Aug 02 07:19:39 2020 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index