projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56a21c9
)
nor: remove bogus output about padding sections
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Wed, 28 Apr 2010 06:01:28 +0000
(08:01 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Wed, 28 Apr 2010 06:01:28 +0000
(08:01 +0200)
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>
src/flash/nor/core.c
patch
|
blob
|
history
diff --git
a/src/flash/nor/core.c
b/src/flash/nor/core.c
index 15e460a1b0f9469c17979895d2ba016809ab9117..b8dda96b0f6ea3d50417351efd1c378aba927044 100644
(file)
--- 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 */