Date: Sat, 14 Feb 2009 21:55:09 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188616 - head/sys/kern Message-ID: <200902142155.n1ELt9W3031340@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcus (doc,ports committer) Date: Sat Feb 14 21:55:09 2009 New Revision: 188616 URL: http://svn.freebsd.org/changeset/base/188616 Log: 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 Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Sat Feb 14 21:54:44 2009 (r188615) +++ head/sys/kern/kern_descrip.c Sat Feb 14 21:55:09 2009 (r188616) @@ -2533,8 +2533,6 @@ export_vnode_for_osysctl(struct vnode *v 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 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902142155.n1ELt9W3031340>