diff options
author | imp <imp@FreeBSD.org> | 2005-01-26 05:12:16 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-01-26 05:12:16 +0000 |
commit | 960915d7daad7d2a1194eabf48eaff7162560915 (patch) | |
tree | 2967cae603bbcf078615b04921f4e000bb9a6ce3 /sys/dev/ed | |
parent | 20b49aeb76e76ed251c5af77a88a08d4b67bd485 (diff) | |
download | FreeBSD-src-960915d7daad7d2a1194eabf48eaff7162560915.zip FreeBSD-src-960915d7daad7d2a1194eabf48eaff7162560915.tar.gz |
Repair probe messages a bit. Previously, we'd print the ethernet
address, and additional information. Then the printing of the
ethernet address was moved into ether_attach, and so we were printing
orphaned information about the card. Now the probe message is
prefixed by edX:. Prepare for it to move under bootverbose, but don't
move it there yet (the || 1 trick).
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 3e4c43d..1329753 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -1756,22 +1756,25 @@ ed_attach(dev) ether_ifattach(ifp, sc->arpcom.ac_enaddr); /* device attach does transition from UNCONFIGURED to IDLE state */ - if (sc->type_str && (*sc->type_str != 0)) - printf("type %s ", sc->type_str); - else - printf("type unknown (0x%x) ", sc->type); - - if (sc->vendor == ED_VENDOR_HP) - printf("(%s %s IO)", (sc->hpp_id & ED_HPP_ID_16_BIT_ACCESS) ? - "16-bit" : "32-bit", - sc->hpp_mem_start ? "memory mapped" : "regular"); - else - printf("%s ", sc->isa16bit ? "(16 bit)" : "(8 bit)"); + if (bootverbose || 1) { + if (sc->type_str && (*sc->type_str != 0)) + device_printf(dev, "type %s ", sc->type_str); + else + device_printf(dev, "type unknown (0x%x) ", sc->type); - printf("%s\n", (((sc->vendor == ED_VENDOR_3COM) || - (sc->vendor == ED_VENDOR_HP)) && - (ifp->if_flags & IFF_ALTPHYS)) ? " tranceiver disabled" : ""); + if (sc->vendor == ED_VENDOR_HP) + printf("(%s %s IO)", + (sc->hpp_id & ED_HPP_ID_16_BIT_ACCESS) ? + "16-bit" : "32-bit", + sc->hpp_mem_start ? "memory mapped" : "regular"); + else + printf("%s ", sc->isa16bit ? "(16 bit)" : "(8 bit)"); + printf("%s\n", (((sc->vendor == ED_VENDOR_3COM) || + (sc->vendor == ED_VENDOR_HP)) && + (ifp->if_flags & IFF_ALTPHYS)) ? + " tranceiver disabled" : ""); + } return (0); } |