summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-01-21 21:39:08 +0000
committerrwatson <rwatson@FreeBSD.org>2008-01-21 21:39:08 +0000
commitb33bafcdc25555b63db158f936207afb9ea3f767 (patch)
treebc0faebb38f395c07b40cc46be2e3595f05c8f94 /sys/fs
parenta718996964584875f8b883df235ed4a2d7e7585a (diff)
downloadFreeBSD-src-b33bafcdc25555b63db158f936207afb9ea3f767.zip
FreeBSD-src-b33bafcdc25555b63db158f936207afb9ea3f767.tar.gz
Put "coda_rdwr: Internally Opening" printf generated by in-kernel writes
to files, such as ktrace output, under CODA_VERBOSE. Otherwise, each such call to VOP_WRITE() results in a kernel printf. MFC after: 3 days Obtained from: NetBSD
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/coda/coda_vnops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/coda/coda_vnops.c b/sys/fs/coda/coda_vnops.c
index 30c6917..6074938 100644
--- a/sys/fs/coda/coda_vnops.c
+++ b/sys/fs/coda/coda_vnops.c
@@ -341,7 +341,9 @@ coda_rdwr(struct vnode *vp, struct uio *uiop, enum uio_rw rw, int ioflag,
opened_internally = 1;
MARK_INT_GEN(CODA_OPEN_STATS);
error = VOP_OPEN(vp, (rw == UIO_READ ? FREAD : FWRITE), cred, td, NULL);
+#ifdef CODA_VERBOSE
printf("coda_rdwr: Internally Opening %p\n", vp);
+#endif
if (error) {
printf("coda_rdwr: VOP_OPEN on container failed %d\n", error);
return (error);
OpenPOWER on IntegriCloud