Skip to content

Commit

Permalink
Merge pull request #3852 from cgundogan/pr/pktbuf/debug
Browse files Browse the repository at this point in the history
gnrc_pktbuf_static: fix DEBUG
  • Loading branch information
OlegHahm committed Sep 16, 2015
2 parents cca167e + 55c9386 commit d2541c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d2541c8

Please sign in to comment.