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 PRIxBUSSIZE to print a bus_size_t value.



details:   https://anonhg.NetBSD.org/src/rev/74364a4937b4
branches:  trunk
changeset: 950213:74364a4937b4
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 21 08:17:13 2021 +0000

description:
Use PRIxBUSSIZE to print a bus_size_t value.

diffstat:

 sys/dev/pci/virtio_pci.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 07546a0b84bb -r 74364a4937b4 sys/dev/pci/virtio_pci.c
--- a/sys/dev/pci/virtio_pci.c  Thu Jan 21 06:57:26 2021 +0000
+++ b/sys/dev/pci/virtio_pci.c  Thu Jan 21 08:17:13 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: virtio_pci.c,v 1.16 2021/01/20 21:59:48 reinoud Exp $ */
+/* $NetBSD: virtio_pci.c,v 1.17 2021/01/21 08:17:13 martin Exp $ */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.16 2021/01/20 21:59:48 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.17 2021/01/21 08:17:13 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -489,8 +489,9 @@
                        ret = EIO;
                        goto err;
                }
-               aprint_debug_dev(self, "bar[%d]: iot %p, size 0x%lx\n",
-                       j, psc->sc_bars_iot[j], psc->sc_bars_iosize[j]);
+               aprint_debug_dev(self,
+                   "bar[%d]: iot %p, size 0x%" PRIxBUSSIZE "\n",
+                   j, psc->sc_bars_iot[j], psc->sc_bars_iosize[j]);
                bars_idx[i] = j;
                j++;
        }



Home | Main Index | Thread Index | Old Index