From c7a24bf6cf40362638d7f7a79dce895e08da0079 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 16 Dec 2007 13:07:35 +0000 Subject: [PATCH] Soe we're finally bak at reducing the memory footprint be avoiding to pull in large C-library enitities. --- platform/c64/contiki-main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/platform/c64/contiki-main.c b/platform/c64/contiki-main.c index 513267cae..e35e36349 100644 --- a/platform/c64/contiki-main.c +++ b/platform/c64/contiki-main.c @@ -30,12 +30,11 @@ * * Author: Oliver Schmidt * - * $Id: contiki-main.c,v 1.11 2007/11/27 21:50:46 oliverschmidt Exp $ + * $Id: contiki-main.c,v 1.12 2007/12/16 13:07:35 oliverschmidt Exp $ */ -#include - #include "contiki-net.h" +#include "sys/log.h" #include "lib/config.h" #include "net/ethernet-drv.h" @@ -87,29 +86,24 @@ main(void) uip_ipaddr_t addr; uip_ipaddr(&addr, 192,168,0,128); - fprintf(stderr, "IP Address: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr)); uip_sethostaddr(&addr); uip_ipaddr(&addr, 255,255,255,0); - fprintf(stderr, "Subnet Mask: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr)); uip_setnetmask(&addr); uip_ipaddr(&addr, 192,168,0,1); - fprintf(stderr, "Def. Router: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr)); uip_setdraddr(&addr); uip_ipaddr(&addr, 192,168,0,1); - fprintf(stderr, "DNS Server: %d.%d.%d.%d\n", uip_ipaddr_to_quad(&addr)); resolv_conf(&addr); - fprintf(stderr, "Eth. Driver: %s at $%X\n", config.name, config.addr); ethernet_config = &config; } #endif process_start((struct process *)ðernet_process, (char *)ethernet_config); - fprintf(stderr, "Contiki up and running ...\n"); + log_message("Contiki up and running ...", ""); while(1) {