summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2014-12-23 10:50:18 +0100
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-01-19 17:01:46 +0200
commitf289fd739d45d6281b9653b17881a0986fc281c0 (patch)
tree7267fb4c0fd089ac59d6c55186efaaf620e31859
parentc3dbb4f9b7539e39d418fd1f518129fd60c8eca9 (diff)
mmc: make eMMC general purpose partition numbering match spec
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-rw-r--r--common/cmd_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c
index d95cfaa4f8..0e097c78e5 100644
--- a/common/cmd_mmc.c
+++ b/common/cmd_mmc.c
@@ -109,7 +109,7 @@ static void print_mmcinfo(struct mmc *mmc)
bool is_enh = has_enh &&
(mmc->part_attr & EXT_CSD_ENH_GP(i));
if (mmc->capacity_gp[i]) {
- printf("GP%i Capacity: ", i);
+ printf("GP%i Capacity: ", i+1);
print_size(mmc->capacity_gp[i],
is_enh ? " ENH\n" : "\n");
}