Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 11:43b76a7f372b, committed 2020-12-18
- Comitter:
- hakusan270
- Date:
- Fri Dec 18 02:00:04 2020 +0000
- Parent:
- 7:094f84646b9f
- Commit message:
- sdfile
Changed in this revision
| FATFileSystem.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/FATFileSystem.cpp Fri Dec 11 16:16:25 2015 +0000
+++ b/FATFileSystem.cpp Fri Dec 18 02:00:04 2020 +0000
@@ -43,13 +43,13 @@
FATFileSystem *FATFileSystem::_ffs[_VOLUMES] = {0};
FATFileSystem::FATFileSystem(const char* n) : FileSystemLike(n) {
- debug_if(FFS_DBG, "FATFileSystem(%s)\n", n);
+// debug_if(FFS_DBG, "FATFileSystem(%s)\n", n);
for(int i=0; i<_VOLUMES; i++) {
if(_ffs[i] == 0) {
_ffs[i] = this;
_fsid[0] = '0' + i;
_fsid[1] = '\0';
- debug_if(FFS_DBG, "Mounting [%s] on ffs drive [%s]\n", _name, _fsid);
+// debug_if(FFS_DBG, "Mounting [%s] on ffs drive [%s]\n", _name, _fsid);
f_mount(&_fs, _fsid, 0);
return;
}
@@ -67,7 +67,7 @@
}
FileHandle *FATFileSystem::open(const char* name, int flags) {
- debug_if(FFS_DBG, "open(%s) on filesystem [%s], drv [%s]\n", name, _name, _fsid);
+ // debug_if(FFS_DBG, "open(%s) on filesystem [%s], drv [%s]\n", name, _name, _fsid);
char n[64];
sprintf(n, "%s:/%s", _fsid, name);
@@ -103,7 +103,7 @@
int FATFileSystem::remove(const char *filename) {
FRESULT res = f_unlink(filename);
if (res) {
- debug_if(FFS_DBG, "f_unlink() failed: %d\n", res);
+ // debug_if(FFS_DBG, "f_unlink() failed: %d\n", res);
return -1;
}
return 0;
@@ -112,7 +112,7 @@
int FATFileSystem::rename(const char *oldname, const char *newname) {
FRESULT res = f_rename(oldname, newname);
if (res) {
- debug_if(FFS_DBG, "f_rename() failed: %d\n", res);
+ // debug_if(FFS_DBG, "f_rename() failed: %d\n", res);
return -1;
}
return 0;
@@ -121,7 +121,7 @@
int FATFileSystem::format() {
FRESULT res = f_mkfs(_fsid, 0, 512); // Logical drive number, Partitioning rule, Allocation unit size (bytes per cluster)
if (res) {
- debug_if(FFS_DBG, "f_mkfs() failed: %d\n", res);
+ // debug_if(FFS_DBG, "f_mkfs() failed: %d\n", res);
return -1;
}
return 0;