..

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
javakys
Date:
Thu Mar 30 05:09:18 2017 +0000
Parent:
2:b6669c987c8e
Commit message:
change _name to this->getName() due to the access violation

Changed in this revision

FATFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/FATFileSystem.cpp	Thu Nov 29 10:56:08 2012 +0000
+++ b/FATFileSystem.cpp	Thu Mar 30 05:09:18 2017 +0000
@@ -48,7 +48,7 @@
         if(_ffs[i] == 0) {
             _ffs[i] = this;
             _fsid = i;
-            debug_if(FFS_DBG, "Mounting [%s] on ffs drive [%d]\n", _name, _fsid);
+            debug_if(FFS_DBG, "Mounting [%s] on ffs drive [%d]\n", this->getName(), _fsid);
             f_mount(i, &_fs);
             return;
         }
@@ -66,7 +66,7 @@
 }
 
 FileHandle *FATFileSystem::open(const char* name, int flags) {
-    debug_if(FFS_DBG, "open(%s) on filesystem [%s], drv [%d]\n", name, _name, _fsid);
+    debug_if(FFS_DBG, "open(%s) on filesystem [%s], drv [%d]\n", name, this->getName(), _fsid);
     char n[64];
     sprintf(n, "%d:/%s", _fsid, name);