diff options
author | imp <imp@FreeBSD.org> | 2008-08-23 07:46:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-08-23 07:46:20 +0000 |
commit | 8da6ff44f12c6b055dc2cada942143931c749c6f (patch) | |
tree | 42cdecf1532cbada31a0f2a92f29bf693feb1c40 /sys/dev/mii/mii.c | |
parent | b06e92ed2896a3c87c3d8a64f23c8a458d36feb0 (diff) | |
download | FreeBSD-src-8da6ff44f12c6b055dc2cada942143931c749c6f.zip FreeBSD-src-8da6ff44f12c6b055dc2cada942143931c749c6f.tar.gz |
Set devs to 0 in case device_get_children return an error. The right thing
to do here is nothing in that case...
Diffstat (limited to 'sys/dev/mii/mii.c')
-rw-r--r-- | sys/dev/mii/mii.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 065bc5d..11610e9 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -339,6 +339,7 @@ mii_phy_probe(device_t dev, device_t *child, ifm_change_cb_t ifmedia_upd, for (i = 0; i < MII_NPHY; i++) { bmsr = MIIBUS_READREG(dev, i, MII_BMSR); + printf("BMSR(%d) is %#x\n", i, bmsr); if (bmsr == 0 || bmsr == 0xffff || (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { /* Assume no PHY at this address. */ |