]> www.infradead.org Git - mtd-utils.git/commit
ubiformat: reverse question about vid offset change
authorBernard Blackham <bernard@largestprime.net>
Wed, 25 Jun 2008 13:17:24 +0000 (21:17 +0800)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 25 Jun 2008 15:24:31 +0000 (18:24 +0300)
commitc55490a0224af1147677977b5895c619aead3949
tree05705b1140a030ad63e229c29fc48d9e0dbbc8cd
parentd769da93a56590c23ce9430a1d970e31e835ae88
ubiformat: reverse question about vid offset change

Users can pass the -O option to ubiformat to override the VID header
offset on the command-line. If for some reason, the new offset does
not match what is on flash, ubiformat currently prompts the user if
they'd rather use the *old* offsets.  This means that calling
ubiformat with --yes will not do what was requested on the
command-line.

This patch reverses the question so --yes is actually useful for
running in batch-mode.

Signed-off-by: Bernard Blackham <bernard@largestprime.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/new-utils/src/ubiformat.c