* \todo Implement changing of the parent directory when a file is written to\r
* \todo Implement file creation / deletion\r
*/\r
-#define DEBUG 1\r
+#define DEBUG 0\r
#define VERBOSE 1\r
\r
#define CACHE_FAT 1 //!< Caches the FAT in memory\r
VFS_ReadAt(diskInfo->fileHandle, 0, 512, bs);\r
\r
if(bs->bps == 0 || bs->spc == 0) {\r
- Log_Notice("FAT", "Error in FAT Boot Sector\n");\r
+ Log_Notice("FAT", "Error in FAT Boot Sector");\r
return NULL;\r
}\r
\r
Uint32 Ofs;\r
diskInfo->FATCache = (Uint32*)malloc(sizeof(Uint32)*diskInfo->ClusterCount);\r
if(diskInfo->FATCache == NULL) {\r
- Log_Warning("FAT", "Heap Exhausted\n");\r
+ Log_Warning("FAT", "Heap Exhausted");\r
return NULL;\r
}\r
Ofs = bs->resvSectCount*512;\r
cluster = FAT_int_GetFatValue(disk, cluster);\r
\r
#if DEBUG\r
- LOG("pos=%i\n", pos);\r
- LOG("Reading the rest of the clusters\n");\r
+ LOG("pos=%i", pos);\r
+ LOG("Reading the rest of the clusters");\r
#endif\r
\r
\r
memcpy((void*)(buffer+pos), tmpBuf, length-pos);\r
\r
#if DEBUG\r
- LOG("Free tmpBuf(0x%x) and Return\n", tmpBuf);\r
+ LOG("Free tmpBuf(0x%x) and Return", tmpBuf);\r
#endif\r
\r
free(tmpBuf);\r