aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2019-03-11 15:12:25 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2019-03-11 15:12:25 +0000
commit1eddfbb10ae2f497f7c3351676b6717167a6dcc7 (patch)
treecc312286e89115fd0faf569434b153217136e65b
parentaa4b126086dab0facfcc6f05188dac3790860af2 (diff)
downloaddoc-1eddfbb10ae2f497f7c3351676b6717167a6dcc7.tar.gz
doc-1eddfbb10ae2f497f7c3351676b6717167a6dcc7.zip
Use %zd as the format string. The previous, %d, is not ssize_t and breaks
the mypci.c build. PR: 215863
Notes
Notes: svn path=/head/; revision=52856
-rw-r--r--en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml4
1 files 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-&gt;si_drv1;
- device_printf(sc-&gt;my_dev, "Asked to read %d bytes.\n", uio-&gt;uio_resid);
+ device_printf(sc-&gt;my_dev, "Asked to read %zd bytes.\n", uio-&gt;uio_resid);
return (0);
}
@@ -114,7 +114,7 @@ mypci_write(struct cdev *dev, struct uio *uio, int ioflag)
/* Look up our softc. */
sc = dev-&gt;si_drv1;
- device_printf(sc-&gt;my_dev, "Asked to write %d bytes.\n", uio-&gt;uio_resid);
+ device_printf(sc-&gt;my_dev, "Asked to write %zd bytes.\n", uio-&gt;uio_resid);
return (0);
}