Ticket #2998: debug_bmtphy_probe.diff

File debug_bmtphy_probe.diff, 771 bytes (added by PieterPanman, 16 years ago)
  • bmtphy.c

     
    140140
    141141    /* Let exphy(4) take precedence for these. */
    142142    rval = mii_phy_dev_probe(dev, bmtphys_lp, BUS_PROBE_LOW_PRIORITY);
     143    dprintf("bmtphy_probe: mii_phy_dev_probe(dev, bmtphys_lp, BUS_PROBE_LOW_PRIORITY) returned 0x%x\n", rval);
    143144#ifndef __HAIKU__
    144145    if (rval <= 0)
    145146#else
    146147    if (rval <= 0 && rval != ENXIO)
    147148        return (rval);
    148149#endif
    149 
    150     return (mii_phy_dev_probe(dev, bmtphys_dp, BUS_PROBE_DEFAULT));
     150  rval = mii_phy_dev_probe(dev, bmtphys_dp, BUS_PROBE_DEFAULT);
     151    dprintf("bmtphy_probe: mii_phy_dev_probe(dev, bmtphys_dp, BUS_PROBE_DEFAULT) returned 0x%x\n", rval);
     152    return (rval);
    151153}
    152154
    153155static int