mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
Turn a panic into a printf so IFM_ETH_MASTER on !IFM_1000_T is complained
about but otherwise ignored. When allowing the master to be set manually via ifconfig(8) by adding the former to IFM_SUBTYPE_ETHERNET_OPTION_DESCRIPTIONS (as it should be) it seems to be unfavorable that a machine can be made to panic with a simple ifconfig(8) invocation.
This commit is contained in:
parent
ad6b3047a4
commit
e598f12273
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214608
@ -131,7 +131,7 @@ mii_phy_setmedia(struct mii_softc *sc)
|
||||
break;
|
||||
|
||||
default:
|
||||
panic("mii_phy_setmedia: MASTER on wrong media");
|
||||
printf("mii_phy_setmedia: MASTER on wrong media\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user