aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-01-10 01:33:31 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-01-15 19:12:24 +0200
commit48d5de6f84325f2895ae66830d82ce23e827ff6e (patch)
tree3d66a0e0c7f4e9ec0acf416a346539fdaac9b958
parenta4e502d99129da8ebba6d40b373a4422a175e9af (diff)
ubiformat: always initialize seq number
For some reasons sequence number was set to 0 in some case, which is wrong. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--ubi-utils/src/ubiformat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c
index 3b0f49b..80f3a6d 100644
--- a/ubi-utils/src/ubiformat.c
+++ b/ubi-utils/src/ubiformat.c
@@ -912,7 +912,8 @@ int main(int argc, char * const argv[])
printf("yes\n");
} else
ubigen_info_init(&ui, mtd.eb_size, mtd.min_io_size, 0,
- si->vid_hdr_offs, args.ubi_ver, 0);
+ si->vid_hdr_offs, args.ubi_ver,
+ args.image_seq);
normsg("use offsets %d and %d", ui.vid_hdr_offs, ui.data_offs);
}