Do consistently "first-log then operate".

This commit is contained in:
oliverschmidt 2007-11-25 22:19:49 +00:00
parent 3027f98b80
commit 0df5958e16

View file

@ -30,7 +30,7 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * 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> #include <stdio.h>
@ -91,8 +91,8 @@ main(void)
static struct ethernet_config config = {0xDE08, "cs8900a.eth"}; static struct ethernet_config config = {0xDE08, "cs8900a.eth"};
uip_ipaddr_t addr; uip_ipaddr_t addr;
process_start((struct process *)&ethernet_process, (char *)&config);
printf("Eth. Driver: %s at $%X\n", config.name, config.addr); printf("Eth. Driver: %s at $%X\n", config.name, config.addr);
process_start((struct process *)&ethernet_process, (char *)&config);
uip_ipaddr(&addr, 192,168,0,128); uip_ipaddr(&addr, 192,168,0,128);
printf("IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr)); printf("IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr));