Commit 2cb6695e authored by Tomas Melin's avatar Tomas Melin Committed by Chris Ball
Browse files

Add missing -c for write_reliability

Fixes upstream-merge in 752072da


Write_reliability -c addition from patch was missing.
Signed-off-by: default avatarTomas Melin <tomas.melin@vaisala.com>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent e094e28d
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment