summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2015-10-17 20:41:42 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2015-10-17 20:41:42 +0000
commit34c86138e5623b08c9eeae675c18a1f18a6ee36d (patch)
tree5d2ac4a1b3771f632bc8cc476c3e0b3bfcdc6633 /sys/net
parentcf1e0cbad8992fa5e043ec2a4c788d53205dcbb7 (diff)
Fix build with IFMEDIA_DEBUG defined; ok sthen@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_media.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 8e490476872..9d03a902428 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_media.c,v 1.28 2015/09/29 10:11:40 deraadt Exp $ */
+/* $OpenBSD: if_media.c,v 1.29 2015/10/17 20:41:41 stsp Exp $ */
/* $NetBSD: if_media.c,v 1.10 2000/03/13 23:52:39 soren Exp $ */
/*-
@@ -84,6 +84,9 @@
#include <sys/malloc.h>
#include <net/if.h>
+#ifdef IFMEDIA_DEBUG
+#include <net/if_var.h>
+#endif
#include <net/if_media.h>
#include <net/netisr.h>
@@ -239,7 +242,7 @@ ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm,
if (match == NULL) {
#ifdef IFMEDIA_DEBUG
if (ifmedia_debug) {
- printf("ifmedia_ioctl: no media found for 0x%x\n",
+ printf("ifmedia_ioctl: no media found for 0x%llx\n",
newmedia);
}
#endif