summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/union
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-08-29 10:03:35 +0000
committerbde <bde@FreeBSD.org>1999-08-29 10:03:35 +0000
commit0d1e5d1ef79861f3a90c484e58df214c821511ca (patch)
tree0d74ccb9d7967c70848b74bde8420532b17949d1 /sys/miscfs/union
parentb0ec7e875858d5fa19b1582a4fe4c3b8bf96213a (diff)
downloadFreeBSD-src-0d1e5d1ef79861f3a90c484e58df214c821511ca.zip
FreeBSD-src-0d1e5d1ef79861f3a90c484e58df214c821511ca.tar.gz
Changed old-style option UNION_DIAGNOSTIC to DEBUG and fixed printf
format errors exposed by this. It has nothing to do with diagnostics since it does little more than control tracing of normal operation. Actual diagnostics for the union file system are still controlled by the DIAGNOSTIC option.
Diffstat (limited to 'sys/miscfs/union')
-rw-r--r--sys/miscfs/union/union_subr.c4
-rw-r--r--sys/miscfs/union/union_vfsops.c19
2 files changed, 11 insertions, 12 deletions
diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c
index 6334810..ed09a65 100644
--- a/sys/miscfs/union/union_subr.c
+++ b/sys/miscfs/union/union_subr.c
@@ -253,7 +253,7 @@ union_newsize(vp, uppersz, lowersz)
}
if (sz != VNOVAL) {
-#ifdef UNION_DIAGNOSTIC
+#ifdef DEBUG
printf("union: %s size now %ld\n",
uppersz != VNOVAL ? "upper" : "lower", (long) sz);
#endif
@@ -694,7 +694,7 @@ union_copyup(un, docopy, cred, p)
VOP_UNLOCK(lvp, 0, p);
(void) VOP_CLOSE(lvp, FREAD, cred, p);
}
-#ifdef UNION_DIAGNOSTIC
+#ifdef DEBUG
if (error == 0)
uprintf("union: copied up %s\n", un->un_path);
#endif
diff --git a/sys/miscfs/union/union_vfsops.c b/sys/miscfs/union/union_vfsops.c
index a02fb9a..888ad30 100644
--- a/sys/miscfs/union/union_vfsops.c
+++ b/sys/miscfs/union/union_vfsops.c
@@ -97,8 +97,8 @@ union_mount(mp, path, data, ndp, p)
int len;
u_int size;
-#ifdef UNION_DIAGNOSTIC
- printf("union_mount(mp = %x)\n", mp);
+#ifdef DEBUG
+ printf("union_mount(mp = %p)\n", (void *)mp);
#endif
/*
@@ -270,7 +270,7 @@ union_mount(mp, path, data, ndp, p)
(void)union_statfs(mp, &mp->mnt_stat, p);
-#ifdef UNION_DIAGNOSTIC
+#ifdef DEBUG
printf("union_mount: from %s, on %s\n",
mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname);
#endif
@@ -318,8 +318,8 @@ union_unmount(mp, mntflags, p)
int freeing;
int flags = 0;
-#ifdef UNION_DIAGNOSTIC
- printf("union_unmount(mp = %x)\n", mp);
+#ifdef DEBUG
+ printf("union_unmount(mp = %p)\n", (void *)mp);
#endif
if (mntflags & MNT_FORCE)
@@ -361,7 +361,7 @@ union_unmount(mp, mntflags, p)
return (EBUSY);
}
-#ifdef UNION_DIAGNOSTIC
+#ifdef DEBUG
vprint("union root", um_rootvp);
#endif
/*
@@ -456,10 +456,9 @@ union_statfs(mp, sbp, p)
struct statfs mstat;
int lbsize;
-#ifdef UNION_DIAGNOSTIC
- printf("union_statfs(mp = %x, lvp = %x, uvp = %x)\n", mp,
- um->um_lowervp,
- um->um_uppervp);
+#ifdef DEBUG
+ printf("union_statfs(mp = %p, lvp = %p, uvp = %p)\n",
+ (void *)mp, (void *)um->um_lowervp, (void *)um->um_uppervp);
#endif
bzero(&mstat, sizeof(mstat));
OpenPOWER on IntegriCloud