mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
Debug message shows requested pbuf type (of ROM/REF) upon memory allocation failure.
This commit is contained in:
parent
710ac00024
commit
b68c91c973
@ -303,7 +303,7 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_flag flag)
|
|||||||
/* only allocate memory for the pbuf structure */
|
/* only allocate memory for the pbuf structure */
|
||||||
p = memp_mallocp(MEMP_PBUF);
|
p = memp_mallocp(MEMP_PBUF);
|
||||||
if (p == NULL) {
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* caller must set this field properly, afterwards */
|
/* caller must set this field properly, afterwards */
|
||||||
|
Loading…
Reference in New Issue
Block a user