UPSTREAM: Register being set is other than mentioned in printed message.
BUG=None
TEST=Compile
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Signed-off-by: Chris Ball <chris@printf.net>
(cherry picked from commit 55380d9748c8baae4dda1326e1460aa3f6359d2f)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: Ia3698d8a0b78da04d13f20cbdd8be75afa2a7a7e
Reviewed-on: https://chromium-review.googlesource.com/1114442
Commit-Ready: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 5669578..4cd4001 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -518,7 +518,7 @@
if (ret) {
fprintf(stderr, "Could not write 0x%02x to EXT_CSD[%d] in %s\n",
- 1, EXT_CSD_BOOT_WP, device);
+ 1, EXT_CSD_NATIVE_SECTOR_SIZE, device);
exit(1);
}
printf("MMC disable 512B emulation successful. Now reset the device to switch to 4KB native sector mode.\n");