Add missing -c for write_reliability

Fixes upstream-merge in 752072dafe
Write_reliability -c addition from patch was missing.

Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Signed-off-by: Chris Ball <chris@printf.net>
This commit is contained in:
Tomas Melin authored and Chris Ball committed 2016-09-01 11:49:01 -04:00
1 parent e094e28d56
commit 2cb6695e8d
1 file changed
+5 -2
+5 -2
View File
@@ -1234,11 +1234,14 @@ int do_write_reliability_set(int nargs, char **argv)
int partition;
char *device;
CHECK(nargs != 4, "Usage: mmc write_reliability set <-y|-n> "
CHECK(nargs != 4, "Usage: mmc write_reliability set <-y|-n|-c> "
"<partition> </path/to/mmcblkX>\n", exit(1));
if (!strcmp("-y", argv[1]))
if (!strcmp("-y", argv[1])) {
dry_run = 0;
} else if (!strcmp("-c", argv[1])) {
dry_run = 2;
}
partition = strtol(argv[2], NULL, 10);
device = argv[3];