summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/eth.c4
-rw-r--r--net/tftp.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/net/eth.c b/net/eth.c
index 012158b7dc0..eabbf631b39 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -324,4 +324,8 @@ void eth_try_another(int first_restart)
}
}
+char *eth_get_name (void)
+{
+ return (eth_current ? eth_current->name : "unknown");
+}
#endif
diff --git a/net/tftp.c b/net/tftp.c
index 049df6830a0..d1a30d66439 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -294,6 +294,9 @@ TftpStart (void)
tftp_filename = BootFile;
}
+#if defined(CONFIG_NET_MULTI)
+ printf ("Using %s device\n", eth_get_name());
+#endif
puts ("TFTP from server "); print_IPaddr (NetServerIP);
puts ("; our IP address is "); print_IPaddr (NetOurIP);