Module Name:    src
Committed By:   simonb
Date:           Mon Oct 31 13:00:34 UTC 2022

Modified Files:
        src/sys/dev/pci: virtio.c

Log Message:
Use PRIx64 in a debug print macro to print a uint64_t.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/pci/virtio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/virtio.c
diff -u src/sys/dev/pci/virtio.c:1.62 src/sys/dev/pci/virtio.c:1.63
--- src/sys/dev/pci/virtio.c:1.62	Tue Oct 18 04:20:56 2022
+++ src/sys/dev/pci/virtio.c	Mon Oct 31 13:00:34 2022
@@ -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 @@ virtio_read_device_config_8(struct virti
 	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),

Reply via email to