\r
// Sanity Check offset\r
if(offset > node->Size) {\r
- Log("FAT_Read: Reading past EOF (%i > %i)", offset, node->Size);\r
+ //Log("FAT_Read: Reading past EOF (%i > %i)", offset, node->Size);\r
return 0;\r
}\r
// Clamp Size\r
if(offset + length > node->Size) {\r
- Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli",\r
- offset, length, node->Size, node->Size - offset);\r
+ //Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli",\r
+ // offset, length, node->Size, node->Size - offset);\r
length = node->Size - offset;\r
}\r
\r
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]);
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);