Do consistently "first-log then operate".
This commit is contained in:
parent
3027f98b80
commit
0df5958e16
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: contiki-main.c,v 1.8 2007/11/25 22:16:59 oliverschmidt Exp $
|
||||
* $Id: contiki-main.c,v 1.9 2007/11/25 22:19:49 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -91,8 +91,8 @@ main(void)
|
|||
static struct ethernet_config config = {0xDE08, "cs8900a.eth"};
|
||||
uip_ipaddr_t addr;
|
||||
|
||||
process_start((struct process *)ðernet_process, (char *)&config);
|
||||
printf("Eth. Driver: %s at $%X\n", config.name, config.addr);
|
||||
process_start((struct process *)ðernet_process, (char *)&config);
|
||||
|
||||
uip_ipaddr(&addr, 192,168,0,128);
|
||||
printf("IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));
|
||||
|
|
Loading…
Reference in a new issue