]> Zhao Yanbai Git Server - minix.git/commitdiff
suppress more mostly-harmless messages.
authorBen Gras <ben@minix3.org>
Thu, 26 Mar 2009 16:11:27 +0000 (16:11 +0000)
committerBen Gras <ben@minix3.org>
Thu, 26 Mar 2009 16:11:27 +0000 (16:11 +0000)
servers/vfs/misc.c
servers/vfs/mount.c
servers/vfs/read.c

index 265854442f379c9dce078b434e98a7be07ddeee4..2f391a8f032f2e86a5b1c5971f180e4c2fd01cc2 100644 (file)
@@ -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;
index caa8626857fa063731d785f6c6bdf32d3ccf03f2..8fd1cbbd4310f041902ce2363c5f4258879ac943 100644 (file)
@@ -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; i<NR_PROCS; i++, tfp++) {
                int n;
                   if (tfp->fp_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
index dde6b8c9704fc5743c3c3970d03c58a5b27133fb..453cb85f27e33e15066b4766a5afbaecf33f323b 100644 (file)
@@ -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) {