diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-24 11:03:11 -0700 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-25 10:01:50 +0300 |
commit | 1ff96d5f6b363f1796259d3a6a13c748e6cac24e (patch) | |
tree | f8abb6a2612b8a0c2096226bb97d22bb0da9a492 /nanddump.c | |
parent | 2521d4f1b6b9866a9c89f3c11a4f6a3d763ff1d7 (diff) |
nanddump: change -o to mean --oob, not --omitoob
As warned earlier, we are changing the meaning of `nanddump -o' to
mirror the usage in nandwrite, where -o means to include OOB (i.e.,
`nandwrite -o' writes data to both in-band and out-of-band areas, so
`nanddump -o' should dump data from both in-band and out-of-band areas).
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'nanddump.c')
-rw-r--r-- | nanddump.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -53,8 +53,8 @@ static void display_help(void) "-f file --file=file Dump to file\n" "-l length --length=length Length\n" "-n --noecc Read without error correction\n" -"-o --omitoob Omit OOB data (default in next release)\n" -" --oob Dump OOB data (current default)\n" +" --omitoob Omit OOB data (default in next release)\n" +"-o --oob Dump OOB data (current default)\n" "-p --prettyprint Print nice (hexdump)\n" "-q --quiet Don't display progress and status messages\n" "-s addr --startaddress=addr Start address\n" @@ -119,12 +119,12 @@ static void process_options(int argc, char * const argv[]) {"help", no_argument, 0, 0}, {"version", no_argument, 0, 0}, {"bb", required_argument, 0, 0}, - {"oob", no_argument, 0, 0}, + {"omitoob", no_argument, 0, 0}, {"forcebinary", no_argument, 0, 'a'}, {"canonicalprint", no_argument, 0, 'c'}, {"file", required_argument, 0, 'f'}, + {"oob", no_argument, 0, 'o'}, {"prettyprint", no_argument, 0, 'p'}, - {"omitoob", no_argument, 0, 'o'}, {"startaddress", required_argument, 0, 's'}, {"length", required_argument, 0, 'l'}, {"noecc", no_argument, 0, 'n'}, @@ -159,10 +159,10 @@ static void process_options(int argc, char * const argv[]) error++; bb_default = false; break; - case 3: /* --oob */ + case 3: /* --omitoob */ if (oob_default) { oob_default = false; - omitoob = false; + omitoob = true; } else { errmsg_die("--oob and --oomitoob are mutually exclusive"); } @@ -184,7 +184,7 @@ static void process_options(int argc, char * const argv[]) case 'o': if (oob_default) { oob_default = false; - omitoob = true; + omitoob = false; } else { errmsg_die("--oob and --oomitoob are mutually exclusive"); } |