diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 5b608e8c..3cc2b18f 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -764,7 +764,7 @@ err_t mmnif_tx(struct netif* netif, struct pbuf* p) dest_intr = mmnif_read_rx_inv_intr(dest_ip); #ifdef DEBUG_MMNIF - DEBUGPRINTF("\n SEND 0x%.8X\n",(char*)mpb_start_address + (dest_ip -1)*mpb_size + 2 + pos * 1792); + DEBUGPRINTF("\n SEND 0x%.8X with length: %d\n",(char*)mpb_start_address + (dest_ip -1)*mpb_size + 2 + pos * 1792,p->tot_len +2); hex_dump(p->tot_len +2, p->payload); #endif @@ -979,7 +979,7 @@ static void mmnif_rx(struct netif* netif) #ifdef DEBUG_MMNIF - DEBUGPRINTF("\n RECIEVED - 0x%.8X\n",data + pos); + DEBUGPRINTF("\n RECIEVED - 0x%.8X with legth: %d\n",data + pos,length +2); hex_dump(length+2,data + pos); #endif