]> git.saurik.com Git - apple/hfs.git/blobdiff - fsck_hfs/dfalib/BlockCache.c
hfs-556.100.11.tar.gz
[apple/hfs.git] / fsck_hfs / dfalib / BlockCache.c
index cb58f89dba890e9bd1ad2c9ef677b3bb82afacdc..132139ed23fb0b538b017be04e53fc0a78edb15a 100644 (file)
@@ -285,7 +285,9 @@ ReadFragmentedBlock (SFCB *file, UInt32 blockNum, BlockDescriptor *block)
                if (result) goto ErrorExit;
                
                if (bufs[i]->Length != fragSize) {
-                       plog("ReadFragmentedBlock: cache failure (Length != fragSize)\n");
+            if (debug) {
+                plog("ReadFragmentedBlock: cache failure (Length != fragSize)\n");
+            }
                        result = -1;
                        goto ErrorExit;
                }
@@ -337,7 +339,9 @@ WriteFragmentedBlock( SFCB *file, BlockDescriptor *block, int age, uint32_t writ
        bufEnd = buffer + file->fcbBlockSize;
 
        if (bufs == NULL) {
-               plog("WriteFragmentedBlock: NULL bufs list!\n");
+        if (debug) {
+            plog("WriteFragmentedBlock: NULL bufs list!\n");
+        }
                return (-1);
        }
        
@@ -384,7 +388,9 @@ ReleaseFragmentedBlock (SFCB *file, BlockDescriptor *block, int age)
        bufs  = (Buf_t **) block->blockHeader;
 
        if (bufs == NULL) {
-               plog("ReleaseFragmentedBlock: NULL buf list!\n");
+        if (debug) {
+            plog("ReleaseFragmentedBlock: NULL buf list!\n");
+        }
                return (-1);
        }