From: Ben Gras Date: Fri, 13 Apr 2007 14:00:31 +0000 (+0000) Subject: more removing of warning and debug messages. X-Git-Tag: v3.1.3~1 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=dc67b37a10c13d4499069971ab7e8b91fad9a8ed;p=minix.git more removing of warning and debug messages. --- diff --git a/servers/mfs/path.c b/servers/mfs/path.c index 0d5d41c36..7264c3dd7 100644 --- a/servers/mfs/path.c +++ b/servers/mfs/path.c @@ -205,7 +205,6 @@ printf("%s, %d\n", __FILE__, __LINE__); fs_m_out.RES_OFFSET = path_processed; /* For ENOENT */ if ( (new_name = get_name(path+slashes, string)) == (char*) 0) { put_inode(rip); /* bad path in user space */ -printf("%s, %d\n", __FILE__, __LINE__); return(NIL_INODE); } if (*new_name == '\0' && (action & PATH_PENULTIMATE)) { @@ -215,7 +214,6 @@ printf("%s, %d\n", __FILE__, __LINE__); /* last file of path prefix is not a directory */ put_inode(rip); err_code = ENOTDIR; -printf("%s, %d\n", __FILE__, __LINE__); return(NIL_INODE); } } @@ -234,7 +232,6 @@ printf("%s, %d\n", __FILE__, __LINE__); if (rip == NIL_INODE) { if (*new_name == '\0' && (action & PATH_NONSYMBOLIC) != 0) { -printf("%s, %d\n", __FILE__, __LINE__); return(dir_ip); } else if (err_code == ENOENT) @@ -258,7 +255,6 @@ printf("%s, %d\n", __FILE__, __LINE__); sizeof(user_path)) != OK) { put_inode(dir_ip); err_code = ENOENT; -printf("%s, %d\n", __FILE__, __LINE__); return NIL_INODE; } @@ -266,7 +262,6 @@ printf("%s, %d\n", __FILE__, __LINE__); if (++symloop > SYMLOOP) { put_inode(dir_ip); err_code = ELOOP; -printf("%s, %d\n", __FILE__, __LINE__); return NIL_INODE; } @@ -299,7 +294,6 @@ printf("%s, %d\n", __FILE__, __LINE__); /* Either last name reached or symbolic link is opaque */ if ((action & PATH_NONSYMBOLIC) != 0) { put_inode(rip); -printf("%s, %d\n", __FILE__, __LINE__); return(dir_ip); } else { put_inode(dir_ip); diff --git a/servers/mfs/utility.c b/servers/mfs/utility.c index 328844d69..79de888f8 100644 --- a/servers/mfs/utility.c +++ b/servers/mfs/utility.c @@ -98,8 +98,10 @@ int mfs_min_f(char *file, int line, int v1, int v2) panic(file, "strange string lengths", NO_NUM); } if(v2 >= v1) return v1; +#if 0 printf("mfs:%s:%d: truncated %d to %d\n", file, line, v1, v2); +#endif return v2; } diff --git a/servers/pm/signal.c b/servers/pm/signal.c index 26d1bcef5..4e3713838 100644 --- a/servers/pm/signal.c +++ b/servers/pm/signal.c @@ -693,7 +693,9 @@ register struct mproc *rmp; /* whose core is to be dumped */ struct mproc *p_mp; clock_t t[5]; +#if 0 printf("dumpcore for %d / %s\n", rmp->mp_pid, rmp->mp_name); +#endif /* Do not create core files for set uid execution */ if (rmp->mp_realuid != rmp->mp_effuid) return OK; diff --git a/servers/vfs/exec.c b/servers/vfs/exec.c index 6c32cf6d2..44c077154 100644 --- a/servers/vfs/exec.c +++ b/servers/vfs/exec.c @@ -148,18 +148,14 @@ printf("return at %s, %d\n", __FILE__, __LINE__); } if ((vp->v_mode & I_TYPE) != I_REGULAR) { -printf("put_vnode at %s, %d\n", __FILE__, __LINE__); put_vnode(vp); -printf("return at %s, %d\n", __FILE__, __LINE__); return ENOEXEC; } /* Check access. */ if ((r = forbidden(vp, X_BIT)) != OK) { -printf("put_vnode at %s, %d\n", __FILE__, __LINE__); put_vnode(vp); -printf("return at %s, %d\n", __FILE__, __LINE__); return r; } @@ -192,9 +188,7 @@ printf("return at %s, %d\n", __FILE__, __LINE__); if (r != OK) { printf("pm_exec: 2nd fetch_name failed\n"); -printf("put_vnode at %s, %d\n", __FILE__, __LINE__); put_vnode(vp); -printf("return at %s, %d\n", __FILE__, __LINE__); return(r); /* strange */ } r= patch_stack(vp, mbuf, &frame_len); @@ -221,9 +215,7 @@ printf("return at %s, %d\n", __FILE__, __LINE__); if (r != OK) { printf("pm_exec: exec_newmap failed: %d\n", r); -printf("put_vnode at %s, %d\n", __FILE__, __LINE__); put_vnode(vp); -printf("return at %s, %d\n", __FILE__, __LINE__); return r; } diff --git a/servers/vfs/misc.c b/servers/vfs/misc.c index f839004d0..4c586725d 100644 --- a/servers/vfs/misc.c +++ b/servers/vfs/misc.c @@ -594,7 +594,6 @@ struct mem_map *seg_ptr; okendpt(proc_e, &proc_s); free_proc(&fproc[proc_s], FP_EXITING); - printf("VFSdumpcore: not implemented\n"); return OK; } diff --git a/servers/vfs/open.c b/servers/vfs/open.c index 42a05622e..dae7b060b 100644 --- a/servers/vfs/open.c +++ b/servers/vfs/open.c @@ -151,10 +151,12 @@ PRIVATE int common_open(register int oflags, mode_t omode) if(*pathrem) { if (strchr(pathrem, '/') == 0) r= OK; +#if 0 else { printf("common_open: / in pathrem\n"); } +#endif } }