suppress more mostly-harmless messages.

This commit is contained in:
Ben Gras 2009-03-26 16:11:27 +00:00
parent 2d1c884e35
commit 3bb80322d9
3 changed files with 7 additions and 8 deletions

View 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;

View 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

View 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) {