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 PRIuBUSSIZE to print bus_size_t variables.



details:   https://anonhg.NetBSD.org/src/rev/11196cfc0e89
branches:  trunk
changeset: 374038:11196cfc0e89
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Mon Mar 27 14:56:40 2023 +0000

description:
Use PRIuBUSSIZE to print bus_size_t variables.

diffstat:

 sys/dev/pci/if_vioif.c |   6 +++---
 sys/dev/pci/virtio.c   |  12 ++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (62 lines):

diff -r 2c77376aefd5 -r 11196cfc0e89 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Mon Mar 27 10:48:46 2023 +0000
+++ b/sys/dev/pci/if_vioif.c    Mon Mar 27 14:56:40 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.106 2023/03/24 13:16:15 yamaguchi Exp $ */
+/*     $NetBSD: if_vioif.c,v 1.107 2023/03/27 14:56:40 nakayama Exp $  */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.106 2023/03/24 13:16:15 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.107 2023/03/27 14:56:40 nakayama Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1185,7 +1185,7 @@ vioif_alloc_mems(struct vioif_softc *sc)
            &sc->sc_segs[0], 1, &rsegs, BUS_DMA_NOWAIT);
        if (r != 0) {
                aprint_error_dev(sc->sc_dev,
-                   "DMA memory allocation failed, size %zu, "
+                   "DMA memory allocation failed, size %" PRIuBUSSIZE ", "
                    "error code %d\n", dmamemsize, r);
                goto err_none;
        }
diff -r 2c77376aefd5 -r 11196cfc0e89 sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Mon Mar 27 10:48:46 2023 +0000
+++ b/sys/dev/pci/virtio.c      Mon Mar 27 14:56:40 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.70 2023/03/27 10:48:46 riastradh Exp $    */
+/*     $NetBSD: virtio.c,v 1.71 2023/03/27 14:56:40 nakayama Exp $     */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.70 2023/03/27 10:48:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.71 2023/03/27 14:56:40 nakayama Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -866,12 +866,12 @@ virtio_alloc_vq(struct virtio_softc *sc,
        virtio_reset_vq(sc, vq);
 
        aprint_verbose_dev(sc->sc_dev,
-           "allocated %zu byte for virtqueue %d for %s, size %d\n",
-           allocsize, vq->vq_index, name, vq_num);
+           "allocated %" PRIuBUSSIZE " byte for virtqueue %d for %s, "
+           "size %d\n", allocsize, vq->vq_index, name, vq_num);
        if (size_indirect > 0)
                aprint_verbose_dev(sc->sc_dev,
-                   "using %zu byte (%d entries) indirect descriptors\n",
-                   size_indirect, maxnsegs * vq_num);
+                   "using %" PRIuBUSSIZE " byte (%d entries) indirect "
+                   "descriptors\n", size_indirect, maxnsegs * vq_num);
 
        return 0;
 



Home | Main Index | Thread Index | Old Index