svn commit: r52856 - head/en_US.ISO8859-1/books/arch-handbook/pci

Tom Rhodes trhodes at FreeBSD.org
Mon Mar 11 15:12:26 UTC 2019


Author: trhodes
Date: Mon Mar 11 15:12:25 2019
New Revision: 52856
URL: https://svnweb.freebsd.org/changeset/doc/52856

Log:
  Use %zd as the format string.  The previous, %d, is not ssize_t and breaks
  the mypci.c build.
  
  PR:		215863

Modified:
  head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml

Modified: head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Mon Mar 11 15:04:02 2019	(r52855)
+++ head/en_US.ISO8859-1/books/arch-handbook/pci/chapter.xml	Mon Mar 11 15:12:25 2019	(r52856)
@@ -103,7 +103,7 @@ mypci_read(struct cdev *dev, struct uio *uio, int iofl
 
 	/* 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 iof
 
 	/* 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);
 }
 


More information about the svn-doc-all mailing list