aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/src
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2008-08-25 21:09:50 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-26 10:02:14 +0300
commitf49af470bccb6097088e6542931530b7f305ac0b (patch)
tree75b9102df210f9c6221ad100cb7cbff0893a24ec /ubi-utils/new-utils/src
parentd5184fdeff3bb18e4d5c5fe00a91bd473e4ed26f (diff)
ubi-utils: fixed and enhanced '--flash-image' option
The '--flash-image' option of 'ubiformat' requires an argument and '.has_arg' must not be 0 hence. The patch adds this option to the commandline synopsis too. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src')
-rw-r--r--ubi-utils/new-utils/src/ubiformat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ubi-utils/new-utils/src/ubiformat.c b/ubi-utils/new-utils/src/ubiformat.c
index 1fa14b3..c2888e0 100644
--- a/ubi-utils/new-utils/src/ubiformat.c
+++ b/ubi-utils/new-utils/src/ubiformat.c
@@ -92,7 +92,8 @@ static const char *usage =
"\t\t\t[-x <num>] [-E <value>] [-s <bytes>] [-O <offs>] [-n]\n"
"\t\t\t[--help] [--version] [--yes] [--verbose] [--quiet]\n"
"\t\t\t[--ec=<value>] [--vid-hdr-offset=<offs>]\n"
-"\t\t\t[--ubi-ver=<num>] [--no-volume-table]\n\n"
+"\t\t\t[--ubi-ver=<num>] [--no-volume-table]\n"
+"\t\t\t[--flash-image=<file>]\n\n"
"Example 1: " PROGRAM_NAME " /dev/mtd0 -y - format MTD device number 0 and do\n"
" not ask questions.\n"
@@ -103,7 +104,7 @@ static const struct option long_options[] = {
{ .name = "sub-page-size", .has_arg = 1, .flag = NULL, .val = 's' },
{ .name = "vid-hdr-offset", .has_arg = 1, .flag = NULL, .val = 'O' },
{ .name = "no-volume-table", .has_arg = 0, .flag = NULL, .val = 'n' },
- { .name = "flash-image", .has_arg = 0, .flag = NULL, .val = 'f' },
+ { .name = "flash-image", .has_arg = 1, .flag = NULL, .val = 'f' },
{ .name = "yes", .has_arg = 0, .flag = NULL, .val = 'y' },
{ .name = "erase-counter", .has_arg = 1, .flag = NULL, .val = 'e' },
{ .name = "quiet", .has_arg = 0, .flag = NULL, .val = 'q' },