Module Name: src Committed By: martin Date: Thu Jan 21 08:17:13 UTC 2021
Modified Files: src/sys/dev/pci: virtio_pci.c Log Message: Use PRIxBUSSIZE to print a bus_size_t value. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/virtio_pci.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_pci.c diff -u src/sys/dev/pci/virtio_pci.c:1.16 src/sys/dev/pci/virtio_pci.c:1.17 --- src/sys/dev/pci/virtio_pci.c:1.16 Wed Jan 20 21:59:48 2021 +++ src/sys/dev/pci/virtio_pci.c Thu Jan 21 08:17:13 2021 @@ -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 @@ virtio_pci_attach_10(device_t self, void 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++; }