Expand Type column of the report to fit new FlashDeviceMap store and entry types

This commit is contained in:
Nikolaj Schlej 2025-03-10 16:51:34 +07:00
parent 3cb5dc0165
commit fbf6afdfc8
2 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,7 @@ std::vector<UString> FfsReport::generate()
}
// Generate report recursive
report.push_back(UString(" Type | Subtype | Base | Size | CRC32 | Name "));
report.push_back(UString(" Type | Subtype | Base | Size | CRC32 | Name "));
USTATUS result = generateRecursive(report, root);
if (result) {
report.push_back(usprintf("%s: generateRecursive returned ", __FUNCTION__) + errorCodeToUString(result));
@ -59,7 +59,7 @@ USTATUS FfsReport::generateRecursive(std::vector<UString> & report, const UModel
}
report.push_back(
UString(" ") + itemTypeToUString(model->type(index)).leftJustified(16)
UString(" ") + itemTypeToUString(model->type(index)).leftJustified(20)
+ UString("| ") + itemSubtypeToUString(model->type(index), model->subtype(index)).leftJustified(22)
+ offset
+ usprintf("| %08X | %08X | ", (UINT32)data.size(), crc)

View file

@ -70,7 +70,6 @@ extern const UByteArray NVRAM_ADDITIONAL_STORE_VOLUME_GUID; // 00504624-8A59-4EE
#define NVRAM_VSS_STORE_SIGNATURE 0x53535624 // $VSS
#define NVRAM_APPLE_SVS_STORE_SIGNATURE 0x53565324 // $SVS
#define NVRAM_APPLE_NSS_STORE_SIGNATURE 0x53534E24 // $NSS
#define NVRAM_VSS_VARIABLE_START_ID 0x55AA
// Variable store header flags
#define NVRAM_VSS_VARIABLE_STORE_FORMATTED 0x5a