- Fixed nfs_printf() to use vprintf().

- Fixed vfs.nfs.acdebug sysctl's description.
- Fixed panic when compiled with NFS_ACDEBUG.

MFC after:	3 days
This commit is contained in:
Ruslan Ermilov 2011-04-13 12:46:25 +00:00
parent 4343e1a66b
commit be4e2e7570
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220595

View File

@ -442,7 +442,7 @@ nfs_printf(const char *fmt, ...)
mtx_lock(&Giant);
va_start(ap, fmt);
printf(fmt, ap);
vprintf(fmt, ap);
va_end(ap);
mtx_unlock(&Giant);
}
@ -656,7 +656,7 @@ nfs_loadattrcache(struct vnode **vpp, struct mbuf **mdp, caddr_t *dposp,
SYSCTL_DECL(_vfs_nfs);
static int nfs_acdebug;
SYSCTL_INT(_vfs_nfs, OID_AUTO, acdebug, CTLFLAG_RW, &nfs_acdebug, 0,
"Toggle acdebug (access cache debug) flag");
"Toggle acdebug (attribute cache debug) flag");
#endif
/*
@ -713,6 +713,9 @@ nfs_getattrcache(struct vnode *vp, struct vattr *vaper)
if ((time_second - np->n_attrstamp) >= timeo) {
nfsstats.attrcache_misses++;
mtx_unlock(&np->n_mtx);
#ifdef NFS_ACDEBUG
mtx_unlock(&Giant); /* nfs_printf() */
#endif
KDTRACE_NFS_ATTRCACHE_GET_MISS(vp);
return (ENOENT);
}