From ca4c99972c5224fba8e77a971e73d0277877f3d0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 29 Mar 2010 10:35:23 +0800 Subject: [PATCH] Disable debug in FAT --- Modules/Filesystems/FAT/fat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Modules/Filesystems/FAT/fat.c b/Modules/Filesystems/FAT/fat.c index 7796e3d7..491a4d59 100644 --- a/Modules/Filesystems/FAT/fat.c +++ b/Modules/Filesystems/FAT/fat.c @@ -12,7 +12,7 @@ * \todo Implement changing of the parent directory when a file is written to * \todo Implement file creation / deletion */ -#define DEBUG 1 +#define DEBUG 0 #define VERBOSE 1 #define CACHE_FAT 1 //!< Caches the FAT in memory @@ -105,7 +105,7 @@ tVFS_Node *FAT_InitDevice(char *Device, char **Options) VFS_ReadAt(diskInfo->fileHandle, 0, 512, bs); if(bs->bps == 0 || bs->spc == 0) { - Log_Notice("FAT", "Error in FAT Boot Sector\n"); + Log_Notice("FAT", "Error in FAT Boot Sector"); return NULL; } @@ -180,7 +180,7 @@ tVFS_Node *FAT_InitDevice(char *Device, char **Options) Uint32 Ofs; diskInfo->FATCache = (Uint32*)malloc(sizeof(Uint32)*diskInfo->ClusterCount); if(diskInfo->FATCache == NULL) { - Log_Warning("FAT", "Heap Exhausted\n"); + Log_Warning("FAT", "Heap Exhausted"); return NULL; } Ofs = bs->resvSectCount*512; @@ -639,8 +639,8 @@ Uint64 FAT_Read(tVFS_Node *Node, Uint64 offset, Uint64 length, void *buffer) cluster = FAT_int_GetFatValue(disk, cluster); #if DEBUG - LOG("pos=%i\n", pos); - LOG("Reading the rest of the clusters\n"); + LOG("pos=%i", pos); + LOG("Reading the rest of the clusters"); #endif @@ -663,7 +663,7 @@ Uint64 FAT_Read(tVFS_Node *Node, Uint64 offset, Uint64 length, void *buffer) memcpy((void*)(buffer+pos), tmpBuf, length-pos); #if DEBUG - LOG("Free tmpBuf(0x%x) and Return\n", tmpBuf); + LOG("Free tmpBuf(0x%x) and Return", tmpBuf); #endif free(tmpBuf); -- 2.20.1