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

index 15e460a1b0f9469c17979895d2ba016809ab9117..b8dda96b0f6ea3d50417351efd1c378aba927044 100644 (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 */