From b68c91c973221c4d55fec217d7b2ddecf8e8376f Mon Sep 17 00:00:00 2001 From: likewise Date: Tue, 15 Apr 2003 12:38:48 +0000 Subject: [PATCH] Debug message shows requested pbuf type (of ROM/REF) upon memory allocation failure. --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index c2ed79fd..993201eb 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -303,7 +303,7 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_flag flag) /* only allocate memory for the pbuf structure */ p = memp_mallocp(MEMP_PBUF); if (p == NULL) { - DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_ROM/REF.\n")); + DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_%s.\n", flag == PBUF_ROM?"ROM":"REF")); return NULL; } /* caller must set this field properly, afterwards */