mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_pktbuf_static: fix DEBUG
This commit is contained in:
parent
1e0d1d4be6
commit
55c938636b
@ -97,7 +97,8 @@ gnrc_pktsnip_t *gnrc_pktbuf_mark(gnrc_pktsnip_t *pkt, size_t size, gnrc_nettype_
|
||||
if ((size == 0) || (pkt == NULL) || (size > pkt->size) || (pkt->data == NULL)) {
|
||||
DEBUG("pktbuf: size == 0 (was %u) or pkt == NULL (was %p) or "
|
||||
"size > pkt->size (was %u) or pkt->data == NULL (was %p)\n",
|
||||
(unsigned)size, (void *)pkt, (unsigned)pkt->size, pkt->data);
|
||||
(unsigned)size, (void *)pkt, (pkt ? (unsigned)pkt->size : 0),
|
||||
(pkt ? pkt->data : NULL));
|
||||
mutex_unlock(&_mutex);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user