From 428443a130d0aa7b98f9f81001f77f13a4c3ae28 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 5 Aug 1999 02:24:29 +0000 Subject: [PATCH] Add some more diagnostic information to the 3 different `panic("m_copym")' calls. --- sys/kern/uipc_mbuf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 41c4a1edfb50..4c20340314da 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_mbuf.c,v 1.42 1999/04/26 22:04:28 thorpej Exp $ */ +/* $NetBSD: uipc_mbuf.c,v 1.43 1999/08/05 02:24:29 thorpej Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -407,12 +407,12 @@ m_copym(m, off0, len, wait) int copyhdr = 0; if (off < 0 || len < 0) - panic("m_copym"); + panic("m_copym: off %d, len %d", off, len); if (off == 0 && m->m_flags & M_PKTHDR) copyhdr = 1; while (off > 0) { if (m == 0) - panic("m_copym"); + panic("m_copym: m == 0"); if (off < m->m_len) break; off -= m->m_len; @@ -423,7 +423,7 @@ m_copym(m, off0, len, wait) while (len > 0) { if (m == 0) { if (len != M_COPYALL) - panic("m_copym"); + panic("m_copym: m == 0 and not COPYALL"); break; } MGET(n, wait, m->m_type);