Skip to contentSkip to conversation

ubiformat: always initialize seq number

PATCH New Artem Bityutskiy 1 participant 1 message Jan 9, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ubiformat: always initialize seq number

For some reasons sequence number was set to 0 in some case, which is wrong.

---
 ubi-utils/src/ubiformat.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
ubi-utils/src/ubiformat.c +2 -1
index 3b0f49b..80f3a6d 100644
@@ -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);
 	}
 
Signature · 7 lines
1.6.2.5


--=-Pxdd5oR40ZW7sJDJsgWn
Content-Disposition: attachment; filename="0002-ubiformat-be-consistent-with-sequence-numbers.patch"
Content-Type: text/x-patch; name="0002-ubiformat-be-consistent-with-sequence-numbers.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit