x86: gen_mmu_x86: Fix error-reporting code for non-page-aligned region
%z isn't available in Python, and makes the code raise a ValueError. Use %d instead. Integers in Python 3 are not sized/signed (though it's probably a typo from C). Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
61065b3235
commit
c8687915ce
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ def read_mmu_list(mmu_list_data):
|
|||
sys.exit(2)
|
||||
|
||||
if (size & 0xFFF) != 0:
|
||||
print("Memory region %d size %zu is not page-aligned" %
|
||||
print("Memory region %d size %d is not page-aligned" %
|
||||
(region_index, size))
|
||||
sys.exit(2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue