From 1eddfbb10ae2f497f7c3351676b6717167a6dcc7 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Mon, 11 Mar 2019 15:12:25 +0000 Subject: Use %zd as the format string. The previous, %d, is not ssize_t and breaks the mypci.c build. PR: 215863 --- en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml b/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml index a35983eff2..851e32ce5b 100644 --- a/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml +++ b/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml @@ -103,7 +103,7 @@ mypci_read(struct cdev *dev, struct uio *uio, int ioflag) /* Look up our softc. */ sc = dev->si_drv1; - device_printf(sc->my_dev, "Asked to read %d bytes.\n", uio->uio_resid); + device_printf(sc->my_dev, "Asked to read %zd bytes.\n", uio->uio_resid); return (0); } @@ -114,7 +114,7 @@ mypci_write(struct cdev *dev, struct uio *uio, int ioflag) /* Look up our softc. */ sc = dev->si_drv1; - device_printf(sc->my_dev, "Asked to write %d bytes.\n", uio->uio_resid); + device_printf(sc->my_dev, "Asked to write %zd bytes.\n", uio->uio_resid); return (0); } -- cgit v1.2.3