]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Update the FV Space Information to display decimal and Hex
authorfengyunhua <fengyunhua@byosoft.com.cn>
Fri, 30 Oct 2020 00:09:25 +0000 (08:09 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 3 Nov 2020 01:40:43 +0000 (01:40 +0000)
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 <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
BaseTools/Source/Python/GenFds/GenFds.py

index d5511f4c40e57172b289dfffd05957658d487ce0..ae3e776a5540607d4423164f7d617893d7e10f1f 100644 (file)
@@ -633,7 +633,10 @@ class GenFds(object):
             else:\r
                 Percentage = str((UsedSizeValue + 0.0) / TotalSizeValue)[0:4].lstrip('0.')\r
 \r
-            GenFdsGlobalVariable.InfLogger(Name + ' ' + '[' + Percentage + '%Full] ' + str(TotalSizeValue) + ' total, ' + str(UsedSizeValue) + ' used, ' + str(FreeSizeValue) + ' free')\r
+            GenFdsGlobalVariable.InfLogger(Name + ' ' + '[' + Percentage + '%Full] '\\r
+                                           + str(TotalSizeValue) + ' (' + hex(TotalSizeValue) + ')' + ' total, '\\r
+                                           + str(UsedSizeValue) + ' (' + hex(UsedSizeValue) + ')' + ' used, '\\r
+                                           + str(FreeSizeValue) + ' (' + hex(FreeSizeValue) + ')' + ' free')\r
 \r
     ## PreprocessImage()\r
     #\r