Fix label mismatch for extcsd: Device life time estimation type A
BUG=None
TEST=Tested in peach_pit. Label corrected.
Change-Id: I12afff1a5354264c16fbfb4ad08d48e45402003f
Reviewed-on: https://chromium-review.googlesource.com/188615
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 4b9b12e..c856eb8 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -824,9 +824,10 @@
" 0x%02x\n", j, ext_csd[j]);
for (j = 269; j >= 268; j--) {
__u8 life_used=ext_csd[j];
- printf("Device life time estimation type B"
+ char est_type = 'B' + (j - 269);
+ printf("Device life time estimation type %c"
" [DEVICE_LIFE_TIME_EST_TYP_%c: 0x%02x]\n",
- 'B' + (j - 269), life_used);
+ est_type, est_type, life_used);
if (life_used >= 0x1 && life_used <= 0xa)
printf(" i.e. %d%% - %d%% device life time"
" used\n",