Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix compile error if WM_DEBUG is set.
details: https://anonhg.NetBSD.org/src/rev/fb0ea7b8ac56
branches: trunk
changeset: 368346:fb0ea7b8ac56
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jul 06 05:49:46 2022 +0000
description:
Fix compile error if WM_DEBUG is set.
diffstat:
sys/dev/pci/if_wm.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 192f134e6770 -r fb0ea7b8ac56 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Wed Jul 06 01:16:36 2022 +0000
+++ b/sys/dev/pci/if_wm.c Wed Jul 06 05:49:46 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.736 2022/07/04 15:09:12 skrll Exp $ */
+/* $NetBSD: if_wm.c,v 1.737 2022/07/06 05:49:46 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.736 2022/07/04 15:09:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.737 2022/07/06 05:49:46 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -9956,7 +9956,7 @@
#if defined(WM_DEBUG) || defined(WM_EVENT_COUNTERS)
if (icr & (ICR_RXDMT0 | ICR_RXT0)) {
DPRINTF(sc, WM_DEBUG_RX,
- ("%s: RX: got Rx intr 0x" PRIxBIT "\n",
+ ("%s: RX: got Rx intr %#" __PRIxBIT "\n",
device_xname(sc->sc_dev),
icr & (ICR_RXDMT0 | ICR_RXT0)));
WM_Q_EVCNT_INCR(rxq, intr);
@@ -12556,7 +12556,8 @@
status = CSR_READ(sc, WMREG_STATUS);
DPRINTF(sc, WM_DEBUG_LINK,
- ("%s: status after final read = 0x%x, STATUS_LU = 0x" PRIxBIT "\n",
+ ("%s: status after final read = 0x%x, STATUS_LU = %#"
+ __PRIxBIT "\n",
device_xname(sc->sc_dev), status, STATUS_LU));
if (status & STATUS_LU) {
/* Link is up. */
Home |
Main Index |
Thread Index |
Old Index