From 07058652c12787c02b7cf80a50bf968aaba0dc7c Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 24 Mar 2003 12:58:01 +0000 Subject: [PATCH] Added tracing debug messages. --- src/core/pbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index b2bf2a79..91f123e7 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -698,9 +698,9 @@ pbuf_dechain(struct pbuf *p) p->next = NULL; return q; } -/*-----------------------------------------------------------------------------------*/ -/** Replace any pbufs of type PBUF_FLAG_REF with PBUF_POOL buffers. +/** Replace any pbufs of type PBUF_FLAG_REF with PBUF_POOL buffers. + Go through pbuf chain and replace any PBUF_REF buffers with PBUF_POOL buffers. This is generally done for buffer chains which need to be queued in some way (either on an output queue or on the arp queue). All pbufs @@ -714,7 +714,7 @@ struct pbuf * pbuf_unref(struct pbuf *f) { struct pbuf *p, *prev, *q, *top; - DEBUGF(PBUF_DEBUG, ("pbuf_unref: %p \n", (void*)f)); + DEBUGF(PBUF_DEBUG | DBG_TRACE | 3, ("pbuf_unref: %p\n", (void*)f)); prev = 0; p = f;