diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-04-28 08:01:28 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-04-28 08:01:28 +0200 |
commit | 49b7905cae66ee9e011c71aff758fafba823f87f (patch) | |
tree | edd78df81aa24fd90a3641efe27ca8d4b5da5e28 | |
parent | 56a21c9cb1e4785e2ca3aac16c7a6bb17874d9aa (diff) | |
download | riscv-openocd-49b7905cae66ee9e011c71aff758fafba823f87f.zip riscv-openocd-49b7905cae66ee9e011c71aff758fafba823f87f.tar.gz riscv-openocd-49b7905cae66ee9e011c71aff758fafba823f87f.tar.bz2 |
nor: remove bogus output about padding sections
padding of 0 bytes is actually no padding, do not output
warning about padding in that case.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-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 15e460a..b8dda96 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 */ |