From: Ben Gras Date: Thu, 26 Mar 2009 16:11:27 +0000 (+0000) Subject: suppress more mostly-harmless messages. X-Git-Tag: v3.1.4~87 X-Git-Url: http://zhaoyanbai.com/repos/doxygen.log?a=commitdiff_plain;h=3bb80322d95dc2062fc3305be7a6a69832d6da6d;p=minix.git suppress more mostly-harmless messages. --- diff --git a/servers/vfs/misc.c b/servers/vfs/misc.c index 265854442..2f391a8f0 100644 --- a/servers/vfs/misc.c +++ b/servers/vfs/misc.c @@ -331,8 +331,6 @@ PUBLIC void pm_reboot() /* Unmount at least one. */ for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; vmp++) { if (vmp->m_dev != NO_DEV) { - printf("VFS: pm_reboot: unmount 0x%x, FS %d\n", - vmp->m_dev, vmp->m_fs_e); CHECK_VREFS; (void) unmount(vmp->m_dev); CHECK_VREFS; diff --git a/servers/vfs/mount.c b/servers/vfs/mount.c index caa862685..8fd1cbbd4 100644 --- a/servers/vfs/mount.c +++ b/servers/vfs/mount.c @@ -438,8 +438,10 @@ Dev_t dev; #if 1 int i; struct fproc *tfp; - printf("unmount: vnode 0x%x/%d in use %d times\n", - dev, vp->v_inode_nr, vp->v_ref_count); + if(!(vp->v_inode_nr == 1 && vp->v_ref_count == 1)) { + printf("unmount: vnode 0x%x/%d in use %d times\n", + dev, vp->v_inode_nr, vp->v_ref_count); + } for (i= 0, tfp= fproc; ifp_pid == PID_FREE) @@ -463,10 +465,12 @@ Dev_t dev; printf("\tvnode %d: is a mount point\n", vp->v_inode_nr); } +#if 0 if(vmp_i->m_root_node == vp) { printf("\tvnode %d: is a root node\n", vp->v_inode_nr); } +#endif } } #endif diff --git a/servers/vfs/read.c b/servers/vfs/read.c index dde6b8c97..453cb85f2 100644 --- a/servers/vfs/read.c +++ b/servers/vfs/read.c @@ -69,10 +69,7 @@ int rw_flag; /* READING or WRITING */ if (m_in.nbytes < 0) return(EINVAL); - if ((f = get_filp(m_in.fd)) == NIL_FILP) - { - printf("vfs:read_write: returning %d to endpoint %d\n", - err_code, who_e); + if ((f = get_filp(m_in.fd)) == NIL_FILP) { return(err_code); } if (((f->filp_mode) & (rw_flag == READING ? R_BIT : W_BIT)) == 0) {