Put the "Link is up/down" printfs behind bootverbose. gigE is not so uncommon

that we need to tell people about every cable in the network anymore.  It can
be enabled for debugging purposes with "boot -v".
This commit is contained in:
Poul-Henning Kamp 2004-11-03 14:11:18 +00:00
parent b899bc84c5
commit 5b410dcf85
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137155

View file

@ -1632,11 +1632,12 @@ em_print_link_status(struct adapter * adapter)
em_get_speed_and_duplex(&adapter->hw,
&adapter->link_speed,
&adapter->link_duplex);
printf("em%d: Link is up %d Mbps %s\n",
adapter->unit,
adapter->link_speed,
((adapter->link_duplex == FULL_DUPLEX) ?
"Full Duplex" : "Half Duplex"));
if (bootverbose)
printf("em%d: Link is up %d Mbps %s\n",
adapter->unit,
adapter->link_speed,
((adapter->link_duplex == FULL_DUPLEX) ?
"Full Duplex" : "Half Duplex"));
adapter->link_active = 1;
adapter->smartspeed = 0;
}
@ -1644,7 +1645,8 @@ em_print_link_status(struct adapter * adapter)
if (adapter->link_active == 1) {
adapter->link_speed = 0;
adapter->link_duplex = 0;
printf("em%d: Link is Down\n", adapter->unit);
if (bootverbose)
printf("em%d: Link is Down\n", adapter->unit);
adapter->link_active = 0;
}
}