Merge pull request #541 from drakkar-lig/degug-compile-error
Fix compilation error when DEBUG enabled in core/net/mac/framer-nullmac....
This commit is contained in:
commit
2e27bdda79
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ create(void)
|
|||
rimeaddr_copy(&(hdr->receiver), packetbuf_addr(PACKETBUF_ADDR_RECEIVER));
|
||||
return sizeof(struct nullmac_hdr);
|
||||
}
|
||||
PRINTF("PNULLMAC-UT: too large header: %u\n", len);
|
||||
PRINTF("PNULLMAC-UT: too large header: %u\n", sizeof(struct nullmac_hdr));
|
||||
return FRAMER_FAILED;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -83,7 +83,7 @@ parse(void)
|
|||
PRINTF("PNULLMAC-IN: ");
|
||||
PRINTADDR(packetbuf_addr(PACKETBUF_ADDR_SENDER));
|
||||
PRINTADDR(packetbuf_addr(PACKETBUF_ADDR_RECEIVER));
|
||||
PRINTF("%u (%u)\n", packetbuf_datalen(), len);
|
||||
PRINTF("%u (%u)\n", packetbuf_datalen(), sizeof(struct nullmac_hdr));
|
||||
|
||||
return sizeof(struct nullmac_hdr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue