Browse Source

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>
tags/v0.5.0-rc1
Øyvind Harboe 14 years ago
parent
commit
49b7905cae
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/flash/nor/core.c

+ 2
- 1
src/flash/nor/core.c View File

@@ -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 */


Loading…
Cancel
Save