sccedit
This commit is contained in:
parent
83a3ccdac6
commit
053ceb0096
2 changed files with 12 additions and 11 deletions
|
@ -549,7 +549,7 @@ mmnif_device_stats_t mmnif_get_device_stats()
|
|||
mmnif_device_stats_t stats = {0};
|
||||
|
||||
if(!mmnif_dev)
|
||||
DEBUGPRINTF("mmnif_get_device_stats(): the device is not initialized yet.");
|
||||
DEBUGPRINTF("mmnif_get_device_stats(): the device is not initialized yet.\n");
|
||||
else
|
||||
stats = ((mmnif_t*)mmnif_dev->state)->stats;
|
||||
|
||||
|
@ -566,21 +566,21 @@ void mmnif_print_stats()
|
|||
|
||||
if (!mmnif_dev)
|
||||
{
|
||||
DEBUGPRINTF("mmnif_print_stats(): the device is not initialized yet.");
|
||||
DEBUGPRINTF("mmnif_print_stats(): the device is not initialized yet.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
mmnif = (mmnif_t*)mmnif_dev->state;
|
||||
|
||||
DEBUGPRINTF("/dev/mmnif - stats: \n");
|
||||
DEBUGPRINTF("/dev/mmnif - stats:\n");
|
||||
DEBUGPRINTF("Received: %d packets successfull\n",mmnif->stats.rx);
|
||||
DEBUGPRINTF("Received: %d bytes",mmnif->stats.rx_bytes);
|
||||
DEBUGPRINTF("Received: %d bytes\n",mmnif->stats.rx_bytes);
|
||||
DEBUGPRINTF("interrupts: %d\n",mmnif->stats.rx_intr);
|
||||
DEBUGPRINTF("polling: %d\n",mmnif->stats.rx_poll);
|
||||
DEBUGPRINTF("Received: %d packets containuing errors\n",mmnif->stats.rx_err);
|
||||
DEBUGPRINTF("Transmitted: %d packests successfull",mmnif->stats.tx);
|
||||
DEBUGPRINTF("Transmitted: %d bytes",mmnif->stats.tx_bytes);
|
||||
DEBUGPRINTF("Transmitted: %d packests were dropped due to errors",mmnif->stats.tx_err);
|
||||
DEBUGPRINTF("Transmitted: %d packests successfull\n",mmnif->stats.tx);
|
||||
DEBUGPRINTF("Transmitted: %d bytes\n",mmnif->stats.tx_bytes);
|
||||
DEBUGPRINTF("Transmitted: %d packests were dropped due to errors\n",mmnif->stats.tx_err);
|
||||
|
||||
}
|
||||
|
||||
|
@ -949,7 +949,7 @@ static void mmnif_rx(struct netif* netif)
|
|||
}
|
||||
if (length < sizeof(struct ip_hdr) ||length > netif->mtu)
|
||||
{
|
||||
DEBUGPRINTF("mmnif_rx(): illegal packet length %d => drop the packet",length);
|
||||
DEBUGPRINTF("mmnif_rx(): illegal packet length %d => drop the packet\n",length);
|
||||
goto drop_packet;
|
||||
}
|
||||
|
||||
|
@ -1107,7 +1107,7 @@ int mmnif_poll(void* e)
|
|||
|
||||
if (!mmnif_dev)
|
||||
{
|
||||
DEBUGPRINTF("mmnif_poll(): the driver is not initialized yet");
|
||||
DEBUGPRINTF("mmnif_poll(): the driver is not initialized yet\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1144,7 +1144,7 @@ void mmnif_irqhandler()
|
|||
/* return if mmnif_dev is not yet initialized*/
|
||||
if (!mmnif_dev)
|
||||
{
|
||||
DEBUGPRINTF("mmnif_irqhandler(): the driver is not initialized yet");
|
||||
DEBUGPRINTF("mmnif_irqhandler(): the driver is not initialized yet\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1238,7 +1238,7 @@ int mmnif_close()
|
|||
|
||||
if (!mmnif_dev)
|
||||
{
|
||||
DEBUGPRINTF("mmnif_close(): you closed the device before it was properly opened -.-* ");
|
||||
DEBUGPRINTF("mmnif_close(): you closed the device before it was properly opened -.-* \n");
|
||||
}
|
||||
|
||||
mmnif = (mmnif_t*)mmnif_dev->state;
|
||||
|
|
|
@ -123,6 +123,7 @@ void tcp_init_ok(void* e)
|
|||
|
||||
int network_init(void)
|
||||
{
|
||||
kprintf("mal ne ausgabe von mirAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa\n");
|
||||
tcpip_init(tcp_init_ok,NULL);
|
||||
mmnif_open();
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue