aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/coda/coda_vnops.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1999-08-08 13:22:05 +0000
committerBruce Evans <bde@FreeBSD.org>1999-08-08 13:22:05 +0000
commitf09d6e3daaf98c30389c01a17a391b8682a7c043 (patch)
tree378f0bf431776f5f49a12a6d06af238b3c84d356 /sys/fs/coda/coda_vnops.c
parent6a6ea79ac8edf93b9a81bc849154ab5fdcb8fd0a (diff)
downloadsrc-f09d6e3daaf98c30389c01a17a391b8682a7c043.tar.gz
src-f09d6e3daaf98c30389c01a17a391b8682a7c043.zip
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.
Notes
Notes: svn path=/head/; revision=49524
Diffstat (limited to 'sys/fs/coda/coda_vnops.c')
-rw-r--r--sys/fs/coda/coda_vnops.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c
index c15d0e698f39..ff12a6577a0d 100644
--- a/sys/fs/coda/coda_vnops.c
+++ b/sys/fs/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);