diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-10-31 19:59:40 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-10-31 19:59:40 +0000 |
commit | 4094ae5452f34895c4e4d791ec7612fd08776471 (patch) | |
tree | eff1ee6cc7ea43837aa56785eb38c6ca539a65d4 | |
parent | 59bcf26b0ba725c4b5c497cb28a40bb8deb997cd (diff) | |
download | FreeBSD-src-4094ae5452f34895c4e4d791ec7612fd08776471.zip FreeBSD-src-4094ae5452f34895c4e4d791ec7612fd08776471.tar.gz |
Put probe-time printf of adapter speed and duplex behind bootverbose:
since the link takes a bit to negotiate, the information is pretty
much never available during the probe. As such, the boot output
pretty much always prints N/A for speed and duplex. Since we print
out the output of ifconfig during the user space boot, this early
boot information is also generally redundant, and added to the noise.
MFC after: 2 weeks
-rw-r--r-- | sys/dev/em/if_em.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 5842017..56ab9d4 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -468,16 +468,20 @@ em_attach(device_t dev) adapter->hw.get_link_status = 1; em_check_for_link(&adapter->hw); - /* Print the link status */ - if (adapter->link_active == 1) { - em_get_speed_and_duplex(&adapter->hw, &adapter->link_speed, - &adapter->link_duplex); - printf("em%d: Speed:%d Mbps Duplex:%s\n", - adapter->unit, - adapter->link_speed, - adapter->link_duplex == FULL_DUPLEX ? "Full" : "Half"); - } else - printf("em%d: Speed:N/A Duplex:N/A\n", adapter->unit); + if (bootverbose) { + /* Print the link status */ + if (adapter->link_active == 1) { + em_get_speed_and_duplex(&adapter->hw, + &adapter->link_speed, &adapter->link_duplex); + printf("em%d: Speed:%d Mbps Duplex:%s\n", + adapter->unit, + adapter->link_speed, + adapter->link_duplex == FULL_DUPLEX ? "Full" : + "Half"); + } else + printf("em%d: Speed:N/A Duplex:N/A\n", + adapter->unit); + } /* Identify 82544 on PCIX */ em_get_bus_info(&adapter->hw); |