From c0aa2f9decd968730ed6e2ac976f03aeac048552 Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Fri, 28 Jul 2017 16:46:25 +1000 Subject: 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 Reviewed-by: Samuel Mendoza-Jonas Signed-off-by: Stewart Smith --- 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 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; -- cgit v1.1