Use %08x to print ifmedia word (IFMEDIA_DEBUG).

This commit is contained in:
msaitoh 2019-05-10 08:24:54 +00:00
parent eff7c04a8e
commit 007b45a492

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_media.c,v 1.43 2019/04/23 07:29:04 msaitoh Exp $ */
/* $NetBSD: if_media.c,v 1.44 2019/05/10 08:24:54 msaitoh Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.43 2019/04/23 07:29:04 msaitoh Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.44 2019/05/10 08:24:54 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -265,9 +265,8 @@ _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",
newmedia);
printf("ifmedia_ioctl: no media found for "
"0x%08x\n", newmedia);
}
#endif
return EINVAL;