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 PRIx64 in a debug print macro to print a uin...



details:   https://anonhg.NetBSD.org/src/rev/a5b9459c7fdb
branches:  trunk
changeset: 372216:a5b9459c7fdb
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 31 13:00:34 2022 +0000

description:
Use PRIx64 in a debug print macro to print a uint64_t.

diffstat:

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

diffs (27 lines):

diff -r 70acecee933a -r a5b9459c7fdb sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Mon Oct 31 12:50:49 2022 +0000
+++ b/sys/dev/pci/virtio.c      Mon Oct 31 13:00:34 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.62 2022/10/18 04:20:56 skrll Exp $        */
+/*     $NetBSD: virtio.c,v 1.63 2022/10/31 13:00:34 simonb Exp $       */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.62 2022/10/18 04:20:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.63 2022/10/31 13:00:34 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -244,7 +244,7 @@
        if (BYTE_ORDER != sc->sc_struct_endian)
                val = bswap64(val);
 
-       DPRINTFR("read_8", "%08lx", val, index, 8);
+       DPRINTFR("read_8", "%08"PRIx64, val, index, 8);
        DPRINTFR2("read_8 low ", "%08x",
            bus_space_read_stream_4(sc->sc_devcfg_iot, sc->sc_devcfg_ioh,
                index),



Home | Main Index | Thread Index | Old Index