summaryrefslogtreecommitdiff
path: root/src/flash/nor/core.c
diff options
context:
space:
mode:
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
commit49b7905cae66ee9e011c71aff758fafba823f87f (patch)
treeedd78df81aa24fd90a3641efe27ca8d4b5da5e28 /src/flash/nor/core.c
parent56a21c9cb1e4785e2ca3aac16c7a6bb17874d9aa (diff)
downloadopenocd+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/core.c')
-rw-r--r--src/flash/nor/core.c3
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 */