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 /src/flash/nor | |
parent | 56a21c9cb1e4785e2ca3aac16c7a6bb17874d9aa (diff) | |
download | openocd_libswd-49b7905cae66ee9e011c71aff758fafba823f87f.tar.gz openocd_libswd-49b7905cae66ee9e011c71aff758fafba823f87f.tar.bz2 openocd_libswd-49b7905cae66ee9e011c71aff758fafba823f87f.tar.xz openocd_libswd-49b7905cae66ee9e011c71aff758fafba823f87f.zip |
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>
Diffstat (limited to 'src/flash/nor')
-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 */ |