diff options
author | bde <bde@FreeBSD.org> | 1999-08-08 13:22:05 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-08 13:22:05 +0000 |
commit | f9b2b6fa722f186f7bfed2bae2460db659f160f8 (patch) | |
tree | 7d522d9cec5f881f2b6da9aed5ce72fad8735b02 /sys/coda/coda_vnops.c | |
parent | 250d78c0f19d310a95cb454631ccba2565a2405f (diff) | |
download | FreeBSD-src-f9b2b6fa722f186f7bfed2bae2460db659f160f8.zip FreeBSD-src-f9b2b6fa722f186f7bfed2bae2460db659f160f8.tar.gz |
Fixed all printf format errors reported by gcc -Wformat on i386's:
- %q -> %ll; don't assume that the promotion of off_t is quad_t; only
assume that off_t's are representable as long longs.
- printing of dev_t's was completely broken.
Fixed nearby printf format errors not reported by gcc -Wformat on i386's:
- printing of ino_t's and pointers was sloppy.
Diffstat (limited to 'sys/coda/coda_vnops.c')
-rw-r--r-- | sys/coda/coda_vnops.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c index c15d0e6..ff12a65 100644 --- a/sys/coda/coda_vnops.c +++ b/sys/coda/coda_vnops.c @@ -27,7 +27,7 @@ * Mellon the rights to redistribute these changes without encumbrance. * * @(#) src/sys/coda/coda_vnops.c,v 1.1.1.1 1998/08/29 21:14:52 rvb Exp $ - * $Id: coda_vnops.c,v 1.15 1999/01/29 07:23:53 bde Exp $ + * $Id: coda_vnops.c,v 1.16 1999/07/21 12:51:36 phk Exp $ * */ @@ -255,8 +255,9 @@ coda_open(v) if (error) return (error); if (!error) { - CODADEBUG( CODA_OPEN,myprintf(("open: dev %d inode %d result %d\n", - dev, inode, error)); ) + CODADEBUG( CODA_OPEN,myprintf(("open: dev %#lx inode %lu result %d\n", + (u_long)dev2udev(dev), (u_long)inode, + error)); ) } /* Translate the <device, inode> pair for the cache file into @@ -411,9 +412,9 @@ coda_rdwr(vp, uiop, rw, ioflag, cred, p) MARK_ENTRY(CODA_RDWR_STATS); - CODADEBUG(CODA_RDWR, myprintf(("coda_rdwr(%d, %p, %d, %qd, %d)\n", rw, - uiop->uio_iov->iov_base, uiop->uio_resid, - uiop->uio_offset, uiop->uio_segflg)); ) + CODADEBUG(CODA_RDWR, myprintf(("coda_rdwr(%d, %p, %d, %lld, %d)\n", rw, + (void *)uiop->uio_iov->iov_base, uiop->uio_resid, + (long long)uiop->uio_offset, uiop->uio_segflg)); ) /* Check for rdwr of control object. */ if (IS_CTL_VP(vp)) { @@ -1660,7 +1661,11 @@ coda_readdir(v) MARK_ENTRY(CODA_READDIR_STATS); - CODADEBUG(CODA_READDIR, myprintf(("coda_readdir(%p, %d, %qd, %d)\n", uiop->uio_iov->iov_base, uiop->uio_resid, uiop->uio_offset, uiop->uio_segflg)); ) + CODADEBUG(CODA_READDIR, myprintf(("coda_readdir(%p, %d, %lld, %d)\n", + (void *)uiop->uio_iov->iov_base, + uiop->uio_resid, + (long long)uiop->uio_offset, + uiop->uio_segflg)); ) /* Check for readdir of control object. */ if (IS_CTL_VP(vp)) { @@ -1877,15 +1882,16 @@ coda_grab_vnode(dev_t dev, ino_t ino, struct vnode **vpp) struct mount *mp; if (!(mp = devtomp(dev))) { - myprintf(("coda_grab_vnode: devtomp(%d) returns NULL\n", dev)); + myprintf(("coda_grab_vnode: devtomp(%#lx) returns NULL\n", + (u_long)dev2udev(dev))); return(ENXIO); } /* XXX - ensure that nonzero-return means failure */ error = VFS_VGET(mp,ino,vpp); if (error) { - myprintf(("coda_grab_vnode: iget/vget(%d, %d) returns %p, err %d\n", - dev, ino, *vpp, error)); + myprintf(("coda_grab_vnode: iget/vget(%lx, %lu) returns %p, err %d\n", + (u_long)dev2udev(dev), (u_long)ino, (void *)*vpp, error)); return(ENOENT); } return(0); |