From a40594b7ce9b6495d350e5bc4a76bbd7f915a2b5 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Wed, 29 Sep 2010 21:48:54 +0000 Subject: [PATCH] Display correct name of statically loaded driver. --- cpu/6502/lib/config.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cpu/6502/lib/config.c b/cpu/6502/lib/config.c index 8cb192d0a..cc65c41c3 100644 --- a/cpu/6502/lib/config.c +++ b/cpu/6502/lib/config.c @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * $Id: config.c,v 1.6 2007/12/23 12:33:57 oliverschmidt Exp $ + * $Id: config.c,v 1.7 2010/09/29 21:48:54 oliverschmidt Exp $ */ #include @@ -91,7 +91,15 @@ config_read(char *filename) log_message("Def. Router: ", ipaddrtoa(&config.draddr, uip_buf)); log_message("DNS Server: ", ipaddrtoa(&config.resolvaddr, uip_buf)); +#ifndef ETHERNET log_message("Eth. Driver: ", config.ethernetcfg.name); +#else /* !ETHERNET */ + #define _stringize(arg) #arg + #define stringize(arg) _stringize(arg) + log_message("Eth. Driver: ", stringize(ETHERNET)); + #undef _stringize + #undef stringize +#endif /* !ETHERNET */ log_message("Driver Port: $", utoa(config.ethernetcfg.addr, uip_buf, 16)); uip_sethostaddr(&config.hostaddr);