Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use PRIxBIT instead of casts



details:   https://anonhg.NetBSD.org/src/rev/923648d7aa91
branches:  trunk
changeset: 368263:923648d7aa91
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 02 06:10:29 2022 +0000

description:
Use PRIxBIT instead of casts

diffstat:

 sys/dev/pci/if_wm.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r e41154fc958f -r 923648d7aa91 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Sat Jul 02 06:09:37 2022 +0000
+++ b/sys/dev/pci/if_wm.c       Sat Jul 02 06:10:29 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.734 2022/07/02 06:09:37 skrll Exp $        */
+/*     $NetBSD: if_wm.c,v 1.735 2022/07/02 06:10:29 skrll 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.734 2022/07/02 06:09:37 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.735 2022/07/02 06:10:29 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -9955,9 +9955,9 @@
 #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%08x\n",
+                   ("%s: RX: got Rx intr 0x" PRIxBIT "\n",
                        device_xname(sc->sc_dev),
-                       icr & (uint32_t)(ICR_RXDMT0 | ICR_RXT0)));
+                       icr & (ICR_RXDMT0 | ICR_RXT0)));
                WM_Q_EVCNT_INCR(rxq, intr);
        }
 #endif
@@ -12555,8 +12555,8 @@
 
                status = CSR_READ(sc, WMREG_STATUS);
                DPRINTF(sc, WM_DEBUG_LINK,
-                   ("%s: status after final read = 0x%x, STATUS_LU = 0x%x\n",
-                       device_xname(sc->sc_dev), status, (uint32_t)STATUS_LU));
+                   ("%s: status after final read = 0x%x, STATUS_LU = 0x" PRIxBIT "\n",
+                       device_xname(sc->sc_dev), status, STATUS_LU));
                if (status & STATUS_LU) {
                        /* Link is up. */
                        DPRINTF(sc, WM_DEBUG_LINK,



Home | Main Index | Thread Index | Old Index