Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Use %08x to print ifmedia word (IFMEDIA_DEBUG).
details: https://anonhg.NetBSD.org/src/rev/ecc915e54773
branches: trunk
changeset: 998979:ecc915e54773
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri May 10 08:24:54 2019 +0000
description:
Use %08x to print ifmedia word (IFMEDIA_DEBUG).
diffstat:
sys/net/if_media.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r bd87a3cb6258 -r ecc915e54773 sys/net/if_media.c
--- a/sys/net/if_media.c Fri May 10 06:53:42 2019 +0000
+++ b/sys/net/if_media.c Fri May 10 08:24:54 2019 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index