mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
chg: mem spiffs info - text output
This commit is contained in:
parent
de1093d5d9
commit
5acc77bc95
1 changed files with 15 additions and 10 deletions
|
@ -533,16 +533,21 @@ void rdv40_spiffs_safe_print_fsinfo() {
|
||||||
rdv40_spiffs_fsinfo fsinfo;
|
rdv40_spiffs_fsinfo fsinfo;
|
||||||
rdv40_spiffs_getfsinfo(&fsinfo, RDV40_SPIFFS_SAFETY_SAFE);
|
rdv40_spiffs_getfsinfo(&fsinfo, RDV40_SPIFFS_SAFETY_SAFE);
|
||||||
DbpString(_BLUE_("Flash Memory FileSystem Info (SPIFFS)"));
|
DbpString(_BLUE_("Flash Memory FileSystem Info (SPIFFS)"));
|
||||||
Dbprintf("-------------------------------------");
|
// Dbprintf("-------------------------------------");
|
||||||
Dbprintf("* Filesystem Logical Block Size.........%d bytes", fsinfo.blockSize);
|
Dbprintf(" Logical Block Size........." _YELLOW_("%d")"bytes", fsinfo.blockSize);
|
||||||
Dbprintf("* Filesystem Logical Page Size..........%d bytes", fsinfo.pageSize);
|
Dbprintf(" Logical Page Size.........." _YELLOW_("%d")"bytes", fsinfo.pageSize);
|
||||||
Dbprintf("--");
|
Dbprintf("");
|
||||||
Dbprintf("* Filesystem Max Open Files.............%d file descriptors", fsinfo.maxOpenFiles);
|
Dbprintf(" Max Open Files............." _YELLOW_("%d")"file descriptors", fsinfo.maxOpenFiles);
|
||||||
Dbprintf("* Filesystem Max Path Length............%d chars", fsinfo.maxPathLength);
|
Dbprintf(" Max Path Length............" _YELLOW_("%d")"chars", fsinfo.maxPathLength);
|
||||||
Dbprintf("--");
|
// DbpString(_BLUE_("Details"));
|
||||||
Dbprintf("Filesystem\tSize\tUsed\tAvailable\tUse%\tMounted on");
|
DbpString("");
|
||||||
Dbprintf("spiffs\t%dB\t%dB\t%dB\t\t%d%\t/", fsinfo.totalBytes, fsinfo.usedBytes, fsinfo.freeBytes,
|
Dbprintf(" Filesystem\tSize\tUsed\tAvailable\tUse%\tMounted on");
|
||||||
fsinfo.usedPercent);
|
Dbprintf(" spiffs \t%d B\t%d B\t%d B\t\t"_YELLOW_("%d%")"\t/"
|
||||||
|
, fsinfo.totalBytes
|
||||||
|
, fsinfo.usedBytes
|
||||||
|
, fsinfo.freeBytes
|
||||||
|
, fsinfo.usedPercent
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this function is safe and WILL rollback since it is only a PRINTING function,
|
// this function is safe and WILL rollback since it is only a PRINTING function,
|
||||||
|
|
Loading…
Reference in a new issue