summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-18 13:13:01 +0000
committerpeter <peter@FreeBSD.org>1999-08-18 13:13:01 +0000
commitb9612aa56c93ef5eea6d452880947bc1bb939d4b (patch)
treee8d4413e35f4f3d514e6f0dd90d768830d4344f1 /sys/net
parentcd9fb3ba33f296f58e5dbc41a9d800ec023acc51 (diff)
downloadFreeBSD-src-b9612aa56c93ef5eea6d452880947bc1bb939d4b.zip
FreeBSD-src-b9612aa56c93ef5eea6d452880947bc1bb939d4b.tar.gz
Hopefully make IFMEDIA_DEBUG compile. if_xname[] is a NetBSD addition,
we need if_name, if_unit. (maybe we should pick up if_xname[] ?) Pointed out by: jkb@yahoo-inc.com
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_media.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 553af92..50369da 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -1,5 +1,5 @@
/* $NetBSD: if_media.c,v 1.1 1997/03/17 02:55:15 thorpej Exp $ */
-/* $Id: if_media.c,v 1.6 1998/02/09 06:09:54 eivind Exp $ */
+/* $Id: if_media.c,v 1.7 1999/04/16 21:22:45 peter Exp $ */
/*
* Copyright (c) 1997
@@ -246,8 +246,8 @@ ifmedia_ioctl(ifp, ifr, ifm, cmd)
*/
#ifdef IFMEDIA_DEBUG
if (ifmedia_debug) {
- printf("ifmedia_ioctl: switching %s to ",
- ifp->if_xname);
+ printf("ifmedia_ioctl: switching %s%d to ",
+ ifp->if_name, ifp->if_unit);
ifmedia_printword(match->ifm_media);
}
#endif
OpenPOWER on IntegriCloud