Fix compilation error when DEBUG enabled in core/net/mac/framer-nullmac.c
This commit is contained in:
parent
0258c413cc
commit
662eb4db14
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