Skip to content

Commit

Permalink
fix a few misspellings
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamLeara authored and NikolajSchlej committed Oct 14, 2023
1 parent daf5851 commit 0e11189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/ffs.h
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ typedef struct BPDT_ENTRY_ {
UINT32 SplitSubPartitionFirstPart : 1;
UINT32 SplitSubPartitionSecondPart : 1;
UINT32 CodeSubPartition : 1;
UINT32 UmaCachable : 1;
UINT32 UmaCacheable : 1;
UINT32 Reserved: 12;
UINT32 Offset;
UINT32 Size;
Expand Down
8 changes: 4 additions & 4 deletions common/ffsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4215,7 +4215,7 @@ USTATUS FfsParser::parseBpdtRegion(const UByteArray & region, const UINT32 local
UString("\nSplit sub-partition first part: ") + (ptEntry->SplitSubPartitionFirstPart ? "Yes" : "No") +
UString("\nSplit sub-partition second part: ") + (ptEntry->SplitSubPartitionSecondPart ? "Yes" : "No") +
UString("\nCode sub-partition: ") + (ptEntry->CodeSubPartition ? "Yes" : "No") +
UString("\nUMA cachable: ") + (ptEntry->UmaCachable ? "Yes" : "No");
UString("\nUMA cacheable: ") + (ptEntry->UmaCacheable ? "Yes" : "No");

// Add tree item
UModelIndex entryIndex = model->addItem(localOffset + offset, Types::BpdtEntry, 0, name, UString(), info, UByteArray(), UByteArray((const char*)ptEntry, sizeof(BPDT_ENTRY)), UByteArray(), Fixed, index);
Expand Down Expand Up @@ -4295,7 +4295,7 @@ USTATUS FfsParser::parseBpdtRegion(const UByteArray & region, const UINT32 local
goto make_partition_table_consistent;
}
else {
msg(usprintf("%s: BPDT partition intersects with prevous one, skipped", __FUNCTION__),
msg(usprintf("%s: BPDT partition intersects with previous one, skipped", __FUNCTION__),
partitions[i].index);
partitions.erase(partitions.begin() + i);
goto make_partition_table_consistent;
Expand Down Expand Up @@ -4327,7 +4327,7 @@ USTATUS FfsParser::parseBpdtRegion(const UByteArray & region, const UINT32 local
UString("\nSplit sub-partition first part: ") + (partitions[i].ptEntry.SplitSubPartitionFirstPart ? "Yes" : "No") +
UString("\nSplit sub-partition second part: ") + (partitions[i].ptEntry.SplitSubPartitionSecondPart ? "Yes" : "No") +
UString("\nCode sub-partition: ") + (partitions[i].ptEntry.CodeSubPartition ? "Yes" : "No") +
UString("\nUMA cachable: ") + (partitions[i].ptEntry.UmaCachable ? "Yes" : "No");
UString("\nUMA cacheable: ") + (partitions[i].ptEntry.UmaCacheable ? "Yes" : "No");

UString text = bpdtEntryTypeToUString(partitions[i].ptEntry.Type);

Expand Down Expand Up @@ -4858,7 +4858,7 @@ USTATUS FfsParser::parseCpdExtensionsArea(const UModelIndex & index, const UINT3
&& extHeader->Type != CPD_EXT_TYPE_KEY_MANIFEST_EXT
&& extHeader->Type != CPD_EXT_TYPE_SIGNED_PACKAGE_INFO_EXT
&& extHeader->Type != CPD_EXT_TYPE_SPS_PLATFORM_ID) {
msg(usprintf("%s: CPD extention of unknown type found", __FUNCTION__), extIndex);
msg(usprintf("%s: CPD extension of unknown type found", __FUNCTION__), extIndex);
}

offset += extHeader->Length;
Expand Down

0 comments on commit 0e11189

Please sign in to comment.