From: Ben Gras Date: Thu, 7 May 2009 09:57:43 +0000 (+0000) Subject: turn off scary looking debug messages. X-Git-Tag: v3.1.4~60 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.html?a=commitdiff_plain;h=746e138036b07cc3837810a7c9bf7b2695d8a53a;p=minix.git turn off scary looking debug messages. --- diff --git a/servers/vfs/path.c b/servers/vfs/path.c index dc3006afb..00127b9b1 100644 --- a/servers/vfs/path.c +++ b/servers/vfs/path.c @@ -245,7 +245,9 @@ node_details_t *node; /* Empty (start) path? */ if (user_fullpath[0] == '\0') { node->inode_nr = 0; +#if 0 printf("vfs:lookup_rel: returning ENOENT\n"); +#endif return ENOENT; } diff --git a/servers/vfs/read.c b/servers/vfs/read.c index 453cb85f2..884b49459 100644 --- a/servers/vfs/read.c +++ b/servers/vfs/read.c @@ -73,7 +73,9 @@ int rw_flag; /* READING or WRITING */ return(err_code); } if (((f->filp_mode) & (rw_flag == READING ? R_BIT : W_BIT)) == 0) { +#if 0 printf("vfs:read_write: returning error\n"); +#endif return(f->filp_mode == FILP_CLOSED ? EIO : EBADF); } diff --git a/servers/vfs/utility.c b/servers/vfs/utility.c index b79ed73dc..6427bbaba 100644 --- a/servers/vfs/utility.c +++ b/servers/vfs/utility.c @@ -37,8 +37,10 @@ int flag; /* M3 means path may be in message */ int r; if (len > PATH_MAX) { +#if 0 printf("VFS: fetch_name: len (%d) > %d\n", len, PATH_MAX); util_stacktrace(); +#endif err_code = ENAMETOOLONG; return(EGENERIC); }