回复: [edk2-devel] [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex

gaoliming gaoliming at byosoft.com.cn
Tue Nov 3 01:15:16 UTC 2020


Create PR https://github.com/tianocore/edk2/pull/1073


> -----邮件原件-----
> 发件人: bounce+27952+66854+4905953+8761045 at groups.io
> <bounce+27952+66854+4905953+8761045 at groups.io> 代表 Bob Feng
> 发送时间: 2020年11月2日 13:26
> 收件人: devel at edk2.groups.io; fengyunhua at byosoft.com.cn
> 抄送: Liming Gao <gaoliming at byosoft.com.cn>; Chen, Christine
> <yuwei.chen at intel.com>
> 主题: Re: [edk2-devel] [PATCH v2] BaseTools: Update the FV Space
> Information to display decimal and Hex
> 
> Reviewed-by: Bob Feng <bob.c.feng at intel.com>
> 
> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of
> fengyunhua
> Sent: Friday, October 30, 2020 8:09 AM
> To: devel at edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng at intel.com>; Liming Gao
> <gaoliming at byosoft.com.cn>; Chen, Christine <yuwei.chen at intel.com>
> Subject: [edk2-devel] [PATCH v2] 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 <bob.c.feng at intel.com>
> Cc: Liming Gao <gaoliming at byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen at intel.com>
> Signed-off-by: Yunhua Feng <fengyunhua at byosoft.com.cn>
> ---
>  BaseTools/Source/Python/GenFds/GenFds.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> 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()
>      #
> --
> 2.27.0.windows.1
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#66892): https://edk2.groups.io/g/devel/message/66892
Mute This Topic: https://groups.io/mt/77997269/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list