From: Diego Santa Cruz Date: Tue, 23 Dec 2014 09:50:18 +0000 (+0100) Subject: mmc: make eMMC general purpose partition numbering match spec X-Git-Tag: v2015.04-rc1~69^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f289fd739d45d6281b9653b17881a0986fc281c0;p=u-boot 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 --- 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"); }