more removing of warning and debug messages.

This commit is contained in:
Ben Gras 2007-04-13 14:00:31 +00:00
parent 4e0316611a
commit dc67b37a10
6 changed files with 6 additions and 15 deletions

View File

@ -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);

View File

@ -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;
}

View File

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

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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
}
}