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:
Ulf Magnusson 2019-03-21 20:04:21 +01:00 committed by Anas Nashif
commit c8687915ce

View file

@ -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)