summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2014-12-23 09:50:18 (GMT)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>2015-01-19 15:01:46 (GMT)
commitf289fd739d45d6281b9653b17881a0986fc281c0 (patch)
tree7267fb4c0fd089ac59d6c55186efaaf620e31859 /common
parentc3dbb4f9b7539e39d418fd1f518129fd60c8eca9 (diff)
downloadu-boot-f289fd739d45d6281b9653b17881a0986fc281c0.tar.xz
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>
Diffstat (limited to 'common')
-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 d95cfaa..0e097c7 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");
}