d

Fork of FATFileSystem by mbed official

Revision:
5:29903470cfbf
Parent:
2:b6669c987c8e
--- a/FATFileHandle.cpp	Mon Mar 17 14:09:00 2014 +0000
+++ b/FATFileHandle.cpp	Tue Sep 29 21:29:45 2015 +0000
@@ -39,18 +39,18 @@
     UINT n;
     FRESULT res = f_write(&_fh, buffer, length, &n);
     if (res) { 
-        debug_if(FFS_DBG, "f_write() failed: %d", res);
+        //debug_if(FFS_DBG, "f_write() failed: %d", res);
         return -1;
     }
     return n;
 }
         
 ssize_t FATFileHandle::read(void* buffer, size_t length) {
-    debug_if(FFS_DBG, "read(%d)\n", length);
+    //debug_if(FFS_DBG, "read(%d)\n", length);
     UINT n;
     FRESULT res = f_read(&_fh, buffer, length, &n);
     if (res) {
-        debug_if(FFS_DBG, "f_read() failed: %d\n", res);
+        //debug_if(FFS_DBG, "f_read() failed: %d\n", res);
         return -1;
     }
     return n;
@@ -68,10 +68,10 @@
     }
     FRESULT res = f_lseek(&_fh, position);
     if (res) {
-        debug_if(FFS_DBG, "lseek failed: %d\n", res);
+        //debug_if(FFS_DBG, "lseek failed: %d\n", res);
         return -1;
     } else {
-        debug_if(FFS_DBG, "lseek OK, returning %i\n", _fh.fptr);
+        //debug_if(FFS_DBG, "lseek OK, returning %i\n", _fh.fptr);
         return _fh.fptr;
     }
 }
@@ -79,7 +79,7 @@
 int FATFileHandle::fsync() {
     FRESULT res = f_sync(&_fh);
     if (res) {
-        debug_if(FFS_DBG, "f_sync() failed: %d\n", res);
+        //debug_if(FFS_DBG, "f_sync() failed: %d\n", res);
         return -1;
     }
     return 0;