Disable debug in FAT
authorJohn Hodge <[email protected]>
Mon, 29 Mar 2010 02:35:23 +0000 (10:35 +0800)
committerJohn Hodge <[email protected]>
Mon, 29 Mar 2010 02:35:23 +0000 (10:35 +0800)
Modules/Filesystems/FAT/fat.c

index 7796e3d..491a4d5 100644 (file)
@@ -12,7 +12,7 @@
  * \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
@@ -105,7 +105,7 @@ tVFS_Node *FAT_InitDevice(char *Device, char **Options)
        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
@@ -180,7 +180,7 @@ tVFS_Node *FAT_InitDevice(char *Device, char **Options)
        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
@@ -639,8 +639,8 @@ Uint64 FAT_Read(tVFS_Node *Node, Uint64 offset, Uint64 length, void *buffer)
        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
@@ -663,7 +663,7 @@ Uint64 FAT_Read(tVFS_Node *Node, Uint64 offset, Uint64 length, void *buffer)
        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

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