summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-02-14 21:55:09 +0000
committermarcus <marcus@FreeBSD.org>2009-02-14 21:55:09 +0000
commit60038f21cf78de5ad20b51c2f0953cc1801a827f (patch)
treea840c30f10e6c54fbc32178295b92e52259f284e /sys/kern/kern_descrip.c
parent200ea85159a39d9b59e115227fd3a7c347e9ceaf (diff)
downloadFreeBSD-src-60038f21cf78de5ad20b51c2f0953cc1801a827f.zip
FreeBSD-src-60038f21cf78de5ad20b51c2f0953cc1801a827f.tar.gz
Remove the printf's when the vnode to be exported for procstat is not a VDIR.
If the file system backing a process' cwd is removed, and procstat -f PID is called, then these messages would have been printed. The extra verbosity is not required in this situation. Requested by: kib Approved by: kib
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index f6909dd..f8a4e6c 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -2533,8 +2533,6 @@ export_vnode_for_osysctl(struct vnode *vp, int type,
kif->kf_type = KF_TYPE_VNODE;
/* This function only handles directories. */
if (vp->v_type != VDIR) {
- printf("export_vnode_for_osysctl: vnode not directory: %d\n",
- vp->v_type);
vrele(vp);
return (ENOTDIR);
}
@@ -2785,8 +2783,6 @@ export_vnode_for_sysctl(struct vnode *vp, int type,
kif->kf_type = KF_TYPE_VNODE;
/* This function only handles directories. */
if (vp->v_type != VDIR) {
- printf("export_vnode_for_sysctl: vnode not directory: %d\n",
- vp->v_type);
vrele(vp);
return (ENOTDIR);
}
OpenPOWER on IntegriCloud