Needs to know contents of struct ifp and a small ifmedia64 fix.
Index: if_media.c
===================================================================
RCS file: /cvs/src/sys/net/if_media.c,v
retrieving revision 1.28
diff -u -p -r1.28 if_media.c
--- if_media.c 29 Sep 2015 10:11:40 -0000 1.28
+++ if_media.c 16 Oct 2015 19:57:45 -0000
@@ -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
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