Skip to content

Commit 86db57d

Browse files
committed
ptool: Fix undefined variable reference in Partition hash instructions
Fix undefined variable reference in Partition hash instructions. Replace incorrect variable with valid HashInstructions key. Prevent runtime errors and improve reliability. Signed-off-by: Xiaoming Zhao <[email protected]>
1 parent 69af899 commit 86db57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def CreateGPTPartitionTable(PhysicalPartitionNumber,UserProvided=False):
505505
PrintBigWarning("WARNING: This means partitions will *NOT* be aligned to a HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'] of %i KB !!\n\n" % HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'])
506506
print("To correct this, partition.xml should look like this\n")
507507
print("\t<parser_instructions>")
508-
print("\t\tPERFORMANCE_BOUNDARY_IN_KB = %i" % Partition['PERFORMANCE_BOUNDARY_IN_KB'])
508+
print("\t\tPERFORMANCE_BOUNDARY_IN_KB = %i" % HashInstructions['PERFORMANCE_BOUNDARY_IN_KB'])
509509
print("\t\tALIGN_PARTITIONS_TO_PERFORMANCE_BOUNDARY=true")
510510
print("\t</parser_instructions>\n\n")
511511

0 commit comments

Comments
 (0)