Use %zd as the format string. The previous, %d, is not ssize_t and breaks
the mypci.c build. PR: 215863
This commit is contained in:
parent
aa4b126086
commit
1eddfbb10a
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52856
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue