diff options
-rw-r--r-- | src/flash/nor/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index 15e460a1..b8dda96b 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -611,7 +611,8 @@ int flash_write_unlock(struct target *target, struct image *image, run_size += image->sections[++section_last].size; run_size += pad_bytes; - LOG_INFO("Padding image section %d with %d bytes", section_last-1, pad_bytes); + if (pad_bytes > 0) + LOG_INFO("Padding image section %d with %d bytes", section_last-1, pad_bytes); } /* fit the run into bank constraints */ |