From 0166dad49698fbe263759755382006d64a0ac825 Mon Sep 17 00:00:00 2001 From: fengyunhua Date: Fri, 30 Oct 2020 08:09:25 +0800 Subject: BaseTools: Update the FV Space Information to display decimal and Hex REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3009 Update the FV Space Information to display decimal and Hex FV Space Information before format: SECFV [13%Full] 212992 total, 28400 used, 184592 free Updated format: SECFV [13%Full] 212992 (0x34000) total, 28400 (0x6ef0) used, 184592 (0x2d110) free Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng Reviewed-by: Bob Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/GenFds/GenFds.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BaseTools') diff --git a/BaseTools/Source/Python/GenFds/GenFds.py b/BaseTools/Source/Python/GenFds/GenFds.py index d5511f4c40..ae3e776a55 100644 --- a/BaseTools/Source/Python/GenFds/GenFds.py +++ b/BaseTools/Source/Python/GenFds/GenFds.py @@ -633,7 +633,10 @@ class GenFds(object): else: Percentage = str((UsedSizeValue + 0.0) / TotalSizeValue)[0:4].lstrip('0.') - GenFdsGlobalVariable.InfLogger(Name + ' ' + '[' + Percentage + '%Full] ' + str(TotalSizeValue) + ' total, ' + str(UsedSizeValue) + ' used, ' + str(FreeSizeValue) + ' free') + GenFdsGlobalVariable.InfLogger(Name + ' ' + '[' + Percentage + '%Full] '\ + + str(TotalSizeValue) + ' (' + hex(TotalSizeValue) + ')' + ' total, '\ + + str(UsedSizeValue) + ' (' + hex(UsedSizeValue) + ')' + ' used, '\ + + str(FreeSizeValue) + ' (' + hex(FreeSizeValue) + ')' + ' free') ## PreprocessImage() # -- cgit v1.2.3