From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.7012.1604019804140657859 for ; Thu, 29 Oct 2020 18:03:24 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 30 Oct 2020 09:03:13 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Yunhua Feng'" , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20201030000925.1907-1-fengyunhua@byosoft.com.cn> In-Reply-To: <20201030000925.1907-1-fengyunhua@byosoft.com.cn> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjJdIEJhc2VUb29sczogVXBkYXRlIHRoZSBGViBTcGFjZSBJbmZvcm1hdGlvbiB0byBkaXNwbGF5IGRlY2ltYWwgYW5kIEhleA==?= Date: Fri, 30 Oct 2020 09:03:20 +0800 Message-ID: <004501d6ae58$759e44f0$60daced0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQLaROL+sCHc1cV68+mJ3xdxJmEhxaeoJyLA Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Yunhua Feng > =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA10=D4=C230=C8=D5 8:09 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Bob Feng ; Liming Gao > ; Yuwei Chen > =D6=F7=CC=E2: [PATCH v2] BaseTools: Update the FV Space Information to = display > decimal and Hex >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3009 >=20 > Update the FV Space Information to display decimal and Hex >=20 > 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 >=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen > Signed-off-by: Yunhua Feng > --- > BaseTools/Source/Python/GenFds/GenFds.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > 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 =3D str((UsedSizeValue + 0.0) / > TotalSizeValue)[0:4].lstrip('0.') >=20 > - 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') >=20 > ## PreprocessImage() > # > -- > 2.27.0.windows.1