diff --git a/pyocd/flash/builder.py b/pyocd/flash/builder.py index 3f5784a46..7b441acb2 100644 --- a/pyocd/flash/builder.py +++ b/pyocd/flash/builder.py @@ -644,12 +644,12 @@ def program(self, progress_cb=None, smart_flash=True, fast_verify=False, keep_un total_time = self.perf.erase_time + self.perf.program_time kbps = (self.program_byte_count / 1024) / total_time if total_time > 0 else 0 if self.last_erase_was_chip: - LOG.info("Erased chip, programmed %d bytes (%s), skipped %d bytes (%s) at %.02f kB/s", + LOG.info("Erased chip, programmed %d bytes (%s), identical %d bytes (%s) at %.02f kB/s", actual_program_byte_count, get_page_count(actual_program_page_count), skipped_byte_count, get_page_count(skipped_page_count), kbps) else: - LOG.info("Erased %d bytes (%s), programmed %d bytes (%s), skipped %d bytes (%s) at %.02f kB/s", + LOG.info("Erased %d bytes (%s), programmed %d bytes (%s), identical %d bytes (%s) at %.02f kB/s", erase_byte_count, get_sector_count(erase_sector_count), actual_program_byte_count, get_page_count(actual_program_page_count), skipped_byte_count, get_page_count(skipped_page_count), diff --git a/pyocd/flash/loader.py b/pyocd/flash/loader.py index c1b9decc5..6eedf35e8 100755 --- a/pyocd/flash/loader.py +++ b/pyocd/flash/loader.py @@ -351,7 +351,7 @@ def _log_performance(self, perf_list): kbps = (program_byte_count/1024) / totalTime if any(perf.program_type == FlashBuilder.FLASH_CHIP_ERASE for perf in perf_list): - LOG.info("Erased chip, programmed %d bytes (%s), skipped %d bytes (%s) at %.02f kB/s", + LOG.info("Erased chip, programmed %d bytes (%s), identical %d bytes (%s) at %.02f kB/s", actual_program_byte_count, get_page_count(actual_program_page_count), skipped_byte_count, get_page_count(skipped_page_count), kbps) @@ -359,7 +359,7 @@ def _log_performance(self, perf_list): erase_byte_count = sum(perf.erase_byte_count for perf in perf_list) erase_sector_count = sum(perf.erase_sector_count for perf in perf_list) - LOG.info("Erased %d bytes (%s), programmed %d bytes (%s), skipped %d bytes (%s) at %.02f kB/s", + LOG.info("Erased %d bytes (%s), programmed %d bytes (%s), identical %d bytes (%s) at %.02f kB/s", erase_byte_count, get_sector_count(erase_sector_count), actual_program_byte_count, get_page_count(actual_program_page_count), skipped_byte_count, get_page_count(skipped_page_count),