diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index 3cc2b18f..bdc8c1af 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -764,8 +764,8 @@ 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 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); + DEBUGPRINTF("\n SEND 0x%.8X with length: %d\n",(char*)mpb_start_address + (dest_ip -1)*mpb_size + pos * 1792,p->tot_len +2); + hex_dump(p->tot_len, p->payload); #endif mmnif_write_rx_queue(dest_ip, queued); @@ -979,7 +979,7 @@ static void mmnif_rx(struct netif* netif) #ifdef DEBUG_MMNIF - DEBUGPRINTF("\n RECIEVED - 0x%.8X with legth: %d\n",data + pos,length +2); + DEBUGPRINTF("\n RECIEVED - 0x%.8X with legth: %d\n",data + pos,length+2); hex_dump(length+2,data + pos); #endif diff --git a/kernel/tests.c b/kernel/tests.c index 1adef54d..b6138f4d 100644 --- a/kernel/tests.c +++ b/kernel/tests.c @@ -240,6 +240,7 @@ void* client_task(void* e) if (connect(sd,(struct sockaddr *) &pin, sizeof(pin)) == -1) { kprintf("connectfail"); + return; } kprintf("sending"); /* send a message to the server PORT on machine HOST */