[Skiboot] [PATCH v2 07/19] external/pflash: Add description of flags
Cyril Bur
cyril.bur at au1.ibm.com
Fri Jul 28 16:46:25 AEST 2017
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 at au1.ibm.com>
---
external/pflash/pflash.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 1a9e2f2d..26bccffc 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;
--
2.13.3
More information about the Skiboot
mailing list