From b33bafcdc25555b63db158f936207afb9ea3f767 Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 21 Jan 2008 21:39:08 +0000 Subject: 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 --- sys/fs/coda/coda_vnops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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); -- cgit v1.1