public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem.Bityutskiy@nokia.com (Artem Bityutskiy)
To: linux-mtd@lists.infradead.org
Subject: [PATCH 1/2] ubiformat: always initialize seq number
Date: Sun, 10 Jan 2010 01:33:31 +0200	[thread overview]
Message-ID: <mailman.133.1263081099.2170.linux-mtd@lists.infradead.org> (raw)

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

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 ubi-utils/src/ubiformat.c |    3 ++-
 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);
 	}
 
-- 
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

                 reply	other threads:[~2010-01-09 23:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mailman.133.1263081099.2170.linux-mtd@lists.infradead.org \
    --to=artem.bityutskiy@nokia.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox