This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Eth FCC - improve boot time messages
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: 07 Nov 2003 11:01:56 -0700
- Subject: Eth FCC - improve boot time messages
- Organization: MLB Associates
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: devs/eth/powerpc/fcc/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/fcc/current/ChangeLog,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ChangeLog
--- devs/eth/powerpc/fcc/current/ChangeLog 2 Oct 2003 18:37:49 -0000 1.5
+++ devs/eth/powerpc/fcc/current/ChangeLog 7 Nov 2003 18:01:03 -0000
@@ -1,5 +1,9 @@
+2003-11-07 Gary Thomas <gary@mlbassoc.com>
+
+ * src/if_fcc.c (fcc_eth_init): Improve messages, add device name.
+
2003-10-02 Gary Thomas <gary@mlbassoc.com>
* cdl/fcc_eth_drivers.cdl: Buffers need to be a multiple of cache
line size (typically 16 or 32).
Index: devs/eth/powerpc/fcc/current/src/if_fcc.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/fcc/current/src/if_fcc.c,v
retrieving revision 1.3
diff -u -5 -p -r1.3 if_fcc.c
--- devs/eth/powerpc/fcc/current/src/if_fcc.c 30 Aug 2003 17:11:48 -0000 1.3
+++ devs/eth/powerpc/fcc/current/src/if_fcc.c 7 Nov 2003 17:59:06 -0000
@@ -315,11 +315,11 @@ fcc_eth_init(struct cyg_netdevtab_entry
}
#ifdef CYGSEM_DEVS_ETH_POWERPC_FCC_RESET_PHY
_eth_phy_reset(qi->phy);
#endif
phy_state = _eth_phy_state(qi->phy);
- os_printf("FCC ETH: ");
+ os_printf("FCC %s: ", sc->dev_name);
if ((phy_state & ETH_PHY_STAT_LINK) != 0) {
if ((phy_state & ETH_PHY_STAT_100MB) != 0) {
// Link can handle 100Mb
os_printf("100Mb");
if ((phy_state & ETH_PHY_STAT_FDX) != 0) {
@@ -328,11 +328,11 @@ fcc_eth_init(struct cyg_netdevtab_entry
} else {
// Assume 10Mb, half duplex
os_printf("10Mb");
}
} else {
- os_printf("/***NO LINK***");
+ os_printf("/***NO LINK***\n");
return false;
}
os_printf("\n");