Commit f289fd73 authored by Diego Santa Cruz's avatar Diego Santa Cruz Committed by Pantelis Antoniou
Browse files

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: default avatarDiego Santa Cruz <>
parent c3dbb4f9
......@@ -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);
is_enh ? " ENH\n" : "\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment