From c098dce1e54b2050936bcb5f6baa21315c20a5d1 Mon Sep 17 00:00:00 2001 From: boarchuz <46267286+boarchuz@users.noreply.github.com> Date: Thu, 2 Sep 2021 01:56:31 +1000 Subject: [PATCH] check_sizes.py: Fix bootloader size message in build log Closes https://github.com/espressif/esp-idf/pull/7506 --- components/partition_table/check_sizes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/partition_table/check_sizes.py b/components/partition_table/check_sizes.py index d47b9d2838..c53e8c0725 100755 --- a/components/partition_table/check_sizes.py +++ b/components/partition_table/check_sizes.py @@ -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