check_sizes.py: Fix bootloader size message in build log

Closes https://github.com/espressif/esp-idf/pull/7506
This commit is contained in:
boarchuz 2021-09-02 01:56:31 +10:00 committed by KonstantinKondrashov
parent 5f38b766a8
commit c098dce1e5

View File

@ -64,7 +64,7 @@ def check_bootloader(partition_table_offset, bootloader_offset, binary_file): #
_fail(msg)
free_size = max_size - bootloader_size
print('Bootloader binary size {:#x} bytes. {:#x} bytes ({}%) free.'.format(
bootloader_size, free_size, round(free_size * 100 / bootloader_size)))
bootloader_size, free_size, round(free_size * 100 / max_size)))
def check_partition(ptype, subtype, partition_table_file, bin_file): # type: (str, str, io.IOBase, IO) -> None