Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net add the error from ifpromisc to the panic.
details: https://anonhg.NetBSD.org/src/rev/2e023897cc55
branches: trunk
changeset: 747914:2e023897cc55
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 05 17:58:15 2009 +0000
description:
add the error from ifpromisc to the panic.
diffstat:
sys/net/bpf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r af9fb1d348ca -r 2e023897cc55 sys/net/bpf.c
--- a/sys/net/bpf.c Mon Oct 05 16:25:27 2009 +0000
+++ b/sys/net/bpf.c Mon Oct 05 17:58:15 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.146 2009/04/11 23:05:26 christos Exp $ */
+/* $NetBSD: bpf.c,v 1.147 2009/10/05 17:58:15 christos Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.146 2009/04/11 23:05:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.147 2009/10/05 17:58:15 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_bpf.h"
@@ -342,14 +342,14 @@
*/
error = ifpromisc(bp->bif_ifp, 0);
if (error && error != EINVAL)
- panic("bpf: ifpromisc failed");
+ panic("%s: ifpromisc failed: %d", __func__, error);
}
/* Remove d from the interface's descriptor list. */
p = &bp->bif_dlist;
while (*p != d) {
p = &(*p)->bd_next;
if (*p == 0)
- panic("bpf_detachd: descriptor not in list");
+ panic("%s: descriptor not in list", __func__);
}
*p = (*p)->bd_next;
if (bp->bif_dlist == 0)
Home |
Main Index |
Thread Index |
Old Index