diff options
author | bde <bde@FreeBSD.org> | 1998-07-30 17:40:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-30 17:40:45 +0000 |
commit | 0c01873b017eb8d89f9004ca2b49025ce75281df (patch) | |
tree | 075e2904988cbaded4b2d5050ac5bb1282d6701d /sys/fs/nullfs | |
parent | d00cccd49fea9ae2af8d4289c3a2e668c7dff3c5 (diff) | |
download | FreeBSD-src-0c01873b017eb8d89f9004ca2b49025ce75281df.zip FreeBSD-src-0c01873b017eb8d89f9004ca2b49025ce75281df.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 10 | ||||
-rw-r--r-- | sys/fs/nullfs/null_vfsops.c | 20 |
2 files changed, 14 insertions, 16 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index e4d49b6..603f418 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -35,7 +35,7 @@ * * @(#)null_subr.c 8.7 (Berkeley) 5/14/95 * - * $Id: null_subr.c,v 1.17 1998/02/09 06:09:45 eivind Exp $ + * $Id: null_subr.c,v 1.18 1998/07/15 02:32:18 bde Exp $ */ #include "opt_debug_nullfs.h" @@ -274,9 +274,9 @@ null_checkvp(vp, fil, lno) if (a->null_lowervp == NULLVP) { /* Should never happen */ int i; u_long *p; - printf("vp = %x, ZERO ptr\n", vp); + printf("vp = %p, ZERO ptr\n", (void *)vp); for (p = (u_long *) a, i = 0; i < 8; i++) - printf(" %x", p[i]); + printf(" %lx", p[i]); printf("\n"); /* wait for debugger */ while (null_checkvp_barrier) /*WAIT*/ ; @@ -284,9 +284,9 @@ null_checkvp(vp, fil, lno) } if (a->null_lowervp->v_usecount < 1) { int i; u_long *p; - printf("vp = %x, unref'ed lowervp\n", vp); + printf("vp = %p, unref'ed lowervp\n", (void *)vp); for (p = (u_long *) a, i = 0; i < 8; i++) - printf(" %x", p[i]); + printf(" %lx", p[i]); printf("\n"); /* wait for debugger */ while (null_checkvp_barrier) /*WAIT*/ ; diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c index 67bad8a..2730d9f 100644 --- a/sys/fs/nullfs/null_vfsops.c +++ b/sys/fs/nullfs/null_vfsops.c @@ -36,7 +36,7 @@ * @(#)null_vfsops.c 8.2 (Berkeley) 1/21/94 * * @(#)lofs_vfsops.c 1.2 (Berkeley) 6/18/92 - * $Id: null_vfsops.c,v 1.25 1998/03/01 22:46:18 msmith Exp $ + * $Id: null_vfsops.c,v 1.26 1998/05/06 05:29:34 msmith Exp $ */ /* @@ -97,7 +97,7 @@ nullfs_mount(mp, path, data, ndp, p) int isvnunlocked = 0; #ifdef NULLFS_DIAGNOSTIC - printf("nullfs_mount(mp = %x)\n", mp); + printf("nullfs_mount(mp = %p)\n", (void *)mp); #endif /* @@ -237,7 +237,7 @@ nullfs_unmount(mp, mntflags, p) int flags = 0; #ifdef NULLFS_DIAGNOSTIC - printf("nullfs_unmount(mp = %x)\n", mp); + printf("nullfs_unmount(mp = %p)\n", (void *)mp); #endif if (mntflags & MNT_FORCE) @@ -287,10 +287,9 @@ nullfs_root(mp, vpp) struct vnode *vp; #ifdef NULLFS_DIAGNOSTIC - printf("nullfs_root(mp = %x, vp = %x->%x)\n", mp, - MOUNTTONULLMOUNT(mp)->nullm_rootvp, - NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp) - ); + printf("nullfs_root(mp = %p, vp = %p->%p)\n", (void *)mp, + (void *)MOUNTTONULLMOUNT(mp)->nullm_rootvp, + (void *)NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp)); #endif /* @@ -335,10 +334,9 @@ nullfs_statfs(mp, sbp, p) struct statfs mstat; #ifdef NULLFS_DIAGNOSTIC - printf("nullfs_statfs(mp = %x, vp = %x->%x)\n", mp, - MOUNTTONULLMOUNT(mp)->nullm_rootvp, - NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp) - ); + printf("nullfs_statfs(mp = %p, vp = %p->%p)\n", (void *)mp, + (void *)MOUNTTONULLMOUNT(mp)->nullm_rootvp, + (void *)NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp)); #endif bzero(&mstat, sizeof(mstat)); |