diff options
author | Marius Strobl <marius@FreeBSD.org> | 2010-10-31 22:59:49 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2010-10-31 22:59:49 +0000 |
commit | e598f122733bb731ce8bc183522152a78acdd17a (patch) | |
tree | 889db3bad8f0a7d1531e3f4c2bebaa31cc155f3c /sys/dev/mii | |
parent | ad6b3047a4c48418a2308a57fb0e041c88230dcb (diff) | |
download | src-e598f122733bb731ce8bc183522152a78acdd17a.tar.gz src-e598f122733bb731ce8bc183522152a78acdd17a.zip |
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.
Notes
Notes:
svn path=/head/; revision=214608
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 9687199e1b8c..d1cc4f5c7520 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -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"); } } |