From 72783d96c2d86024b92b55a718f06f33b3dc8ade Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 27 Sep 2009 16:48:42 +0800 Subject: [PATCH] Removed debug --- Kernel/vfs/fs/fat.c | 6 +++--- Usermode/Applications/cat_src/main.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Kernel/vfs/fs/fat.c b/Kernel/vfs/fs/fat.c index c7f2d4de..bfae4058 100644 --- a/Kernel/vfs/fs/fat.c +++ b/Kernel/vfs/fs/fat.c @@ -344,13 +344,13 @@ Uint64 FAT_Read(tVFS_Node *node, Uint64 offset, Uint64 length, void *buffer) // Sanity Check offset if(offset > node->Size) { - Log("FAT_Read: Reading past EOF (%i > %i)", offset, node->Size); + //Log("FAT_Read: Reading past EOF (%i > %i)", offset, node->Size); return 0; } // Clamp Size if(offset + length > node->Size) { - Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli", - offset, length, node->Size, node->Size - offset); + //Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli", + // offset, length, node->Size, node->Size - offset); length = node->Size - offset; } diff --git a/Usermode/Applications/cat_src/main.c b/Usermode/Applications/cat_src/main.c index 98776283..a7f3ab32 100644 --- a/Usermode/Applications/cat_src/main.c +++ b/Usermode/Applications/cat_src/main.c @@ -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]); @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) do { num = read(fd, BUF_SIZE, buf); - printf("num = %i\n", num); + //printf("num = %i\n", num); buf[num] = '\0'; printf("%s", buf); } while(num == BUF_SIZE); -- 2.20.1