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

Tom Rhodes <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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-&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 iof
 
 	/* 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);
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.