aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2017-07-28 16:46:25 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-01 13:57:23 +1000
commitc0aa2f9decd968730ed6e2ac976f03aeac048552 (patch)
tree13ad2e7fca142c6903de3fe6691000b33840bda1
parent7e89bd30e88e838f6602c2a392fa8b2738287541 (diff)
downloadskiboot-c0aa2f9decd968730ed6e2ac976f03aeac048552.zip
skiboot-c0aa2f9decd968730ed6e2ac976f03aeac048552.tar.gz
skiboot-c0aa2f9decd968730ed6e2ac976f03aeac048552.tar.bz2
external/pflash: Add description of flags
Recent reworks of pflash expose more partition flags, the --info command only prints them in their one character short names. It isn't obvious what they all are, add a little description Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--external/pflash/pflash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 1a9e2f2..26bccff 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -155,8 +155,10 @@ static void print_flash_info(uint32_t toc)
printf("Flash info:\n");
printf("-----------\n");
printf("Name = %s\n", fl_name);
- printf("Total size = %"PRIu64"MB \n", fl_total_size >> 20);
- printf("Erase granule = %dKB \n", fl_erase_granule >> 10);
+ printf("Total size = %" PRIu64 "MB\t Flags E:ECC, P:PRESERVED, R:READONLY\n",
+ fl_total_size >> 20);
+ printf("Erase granule = %2d%-13sB:BACKUP, F:REPROVISION\n",
+ fl_erase_granule >> 10, "KB");
if (bmc_flash)
return;