aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Melin <tomas.melin@vaisala.com>2016-09-01 11:49:01 -0400
committerChris Ball <chris@printf.net>2016-09-01 11:49:01 -0400
commit2cb6695e8dec00d887bdd5309d1b57d836fcd214 (patch)
treea0022f7274b03a452e9a8b558337f57024a721d3
parente094e28d56ac5cb0b70a14e61c2a936837729eb8 (diff)
downloadmmc-utils-2cb6695e8dec00d887bdd5309d1b57d836fcd214.tar.gz
Add missing -c for write_reliability
Fixes upstream-merge in 752072dafe9cb8957efb5b0ca707043e19f7ce13 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>
-rw-r--r--mmc_cmds.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 2790ead..6b86115 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -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];