Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Make sbdrop panic more verbose
details: https://anonhg.NetBSD.org/src/rev/5f10e9e30529
branches: trunk
changeset: 787672:5f10e9e30529
user: matt <matt%NetBSD.org@localhost>
date: Fri Jun 28 01:23:38 2013 +0000
description:
Make sbdrop panic more verbose
diffstat:
sys/kern/uipc_socket2.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 95919ddb7bae -r 5f10e9e30529 sys/kern/uipc_socket2.c
--- a/sys/kern/uipc_socket2.c Fri Jun 28 01:23:05 2013 +0000
+++ b/sys/kern/uipc_socket2.c Fri Jun 28 01:23:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket2.c,v 1.111 2013/06/27 18:53:17 christos Exp $ */
+/* $NetBSD: uipc_socket2.c,v 1.112 2013/06/28 01:23:38 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.111 2013/06/27 18:53:17 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket2.c,v 1.112 2013/06/28 01:23:38 matt Exp $");
#include "opt_mbuftrace.h"
#include "opt_sb_max.h"
@@ -1235,7 +1235,8 @@
while (len > 0) {
if (m == 0) {
if (next == 0)
- panic("sbdrop");
+ panic("sbdrop(%p,%d): cc=%lu",
+ sb, len, sb->sb_cc);
m = next;
next = m->m_nextpkt;
continue;
Home |
Main Index |
Thread Index |
Old Index