diff options
author | marius <marius@FreeBSD.org> | 2010-10-31 22:59:49 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-10-31 22:59:49 +0000 |
commit | af2e843bec771266303a24c34aad0dad43e4cf38 (patch) | |
tree | 889db3bad8f0a7d1531e3f4c2bebaa31cc155f3c /sys/dev/mii | |
parent | bd1e7d8ed8160529af7733432a1f7c35f9861ec2 (diff) | |
download | FreeBSD-src-af2e843bec771266303a24c34aad0dad43e4cf38.zip FreeBSD-src-af2e843bec771266303a24c34aad0dad43e4cf38.tar.gz |
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.
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 9687199..d1cc4f5 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"); } } |