bla bla bla

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
serbm
Date:
Wed Nov 09 00:44:44 2016 +0000
Parent:
2:b6669c987c8e
Commit message:
mamamamamama

Changed in this revision

FATFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
FATFileSystem.h 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	Wed Nov 09 00:44:44 2016 +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", _name, _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, _fsid);
     char n[64];
     sprintf(n, "%d:/%s", _fsid, name);
     
--- a/FATFileSystem.h	Thu Nov 29 10:56:08 2012 +0000
+++ b/FATFileSystem.h	Wed Nov 09 00:44:44 2016 +0000
@@ -38,6 +38,7 @@
     static FATFileSystem * _ffs[_VOLUMES];   // FATFileSystem objects, as parallel to FatFs drives array
     FATFS _fs;                               // Work area (file system object) for logical drive
     int _fsid;
+    int _name;
 
     virtual FileHandle *open(const char* name, int flags);
     virtual int remove(const char *filename);