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
This commit is contained in:
parent
d7216f5694
commit
0618630015
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user