Skip to content
Snippets Groups Projects
Commit bedca6d7 authored by Ronny Nilsson's avatar Ronny Nilsson
Browse files

The Broadcoms UBI parser requires the binary sequence number to be exactly three bytes.

parent 6c2457cc
No related branches found
No related tags found
No related merge requests found
......@@ -688,7 +688,7 @@ static int meta_generate_blob(const char *tmpPath, int seqNo)
if(!res) res = meta_generate_record(outFd, ubiStr1, data, strlen(data));
// The sequence value.
snprintf(data, sizeof(data), "%d", seqNo);
snprintf(data, sizeof(data), "%3.3d", seqNo);
if(!res) res = meta_generate_record(outFd, ubiStr2, data, strlen(data));
// Ending null trailer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment