Removed debug (VFS_GetAbsPath seems to be stable)
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:48:32 +0000 (18:48 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:48:32 +0000 (18:48 +0800)
Kernel/vfs/open.c
Usermode/Applications/cat_src/main.c

index 86ae3d3..f827473 100644 (file)
@@ -79,12 +79,9 @@ char *VFS_GetAbsPath(char *Path)
                if(pos == -1)   pos = endLen;
                else    pos += read;    // Else, Adjust to absolute
                
-               //Log("pos-read = %i", pos-read);
-               
                // Check Length
                if(pos - read <= 2)
                {
-                       //Log("&ret[read] = '%s'", &ret[read]);
                        // Current Dir "."
                        if(strncmp(&ret[read], ".", pos-read) == 0)     continue;
                        // Parent ".."
@@ -104,9 +101,9 @@ char *VFS_GetAbsPath(char *Path)
                
                // Only copy if the positions differ
                if(read != write) {
-                       Log("write = %i, read = %i, pos-read+1 = %i", write, read, pos-read+1);
+                       //Log("write = %i, read = %i, pos-read+1 = %i", write, read, pos-read+1);
                        memcpy( &ret[write], &ret[read], pos-read+1 );
-                       Log("ret = '%s'", ret);
+                       //Log("ret = '%s'", ret);
                }
                
                if(slashNum < MAX_PATH_SLASHES)
index b6da1cf..a7f3ab3 100644 (file)
@@ -18,7 +18,7 @@ int main(int argc, char *argv[])
                return -1;
        }
 
-       printf("Contents of `%s'\n", argv[1]);
+       //printf("Contents of `%s'\n", argv[1]);
        fd = open(argv[1], OPENFLAG_READ);
        if(fd == -1) {
                printf("Unable to open '%s' for reading\n", argv[1]);

UCC git Repository :: git.ucc.asn.au