summaryrefslogtreecommitdiff
path: root/nanddump.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-22 09:49:22 -0700
committerArtem Bityutskiy <dedekind1@gmail.com>2011-06-23 17:57:55 +0300
commit40d253cb7b761de673877782f540aaed62bef86a (patch)
tree0f93d0554912c2117fa4330784a3eadb5cad539b /nanddump.c
parent16b6394728298f5d2055e4714e8795045f4a1275 (diff)
nanddump: add --oob option
Adds an explicit option for including OOB data in our data dump. Currently, this is the default behavior, but in the next release, the default will be to exclude OOB data. This is done to mirror the '-o' option in nandwrite. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'nanddump.c')
-rw-r--r--nanddump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nanddump.c b/nanddump.c
index b6307cf..e19a45f 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -54,6 +54,7 @@ static void display_help(void)
"-l length --length=length Length\n"
"-n --noecc Read without error correction\n"
"-o --omitoob Omit oob data\n"
+" --oob Dump OOB data\n"
"-p --prettyprint Print nice (hexdump)\n"
"-q --quiet Don't display progress and status messages\n"
"-s addr --startaddress=addr Start address\n"
@@ -127,6 +128,7 @@ 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},
{"forcebinary", no_argument, 0, 'a'},
{"canonicalprint", no_argument, 0, 'c'},
{"file", required_argument, 0, 'f'},
@@ -168,6 +170,9 @@ static void process_options(int argc, char * const argv[])
error++;
bb_default = false;
break;
+ case 3: /* --oob */
+ omitoob = false;
+ break;
}
break;
case 'b':