* [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex
@ 2020-10-30 0:09 fengyunhua
2020-10-30 1:03 ` 回复: " gaoliming
2020-11-02 5:26 ` [edk2-devel] " Bob Feng
0 siblings, 2 replies; 4+ messages in thread
From: fengyunhua @ 2020-10-30 0:09 UTC (permalink / raw)
To: devel; +Cc: Bob Feng, Liming Gao, Yuwei Chen
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>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* 回复: [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex
2020-10-30 0:09 [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex fengyunhua
@ 2020-10-30 1:03 ` gaoliming
2020-11-02 5:26 ` [edk2-devel] " Bob Feng
1 sibling, 0 replies; 4+ messages in thread
From: gaoliming @ 2020-10-30 1:03 UTC (permalink / raw)
To: 'Yunhua Feng', devel; +Cc: 'Bob Feng', 'Yuwei Chen'
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> -----邮件原件-----
> 发件人: Yunhua Feng <fengyunhua@byosoft.com.cn>
> 发送时间: 2020年10月30日 8:09
> 收件人: devel@edk2.groups.io
> 抄送: Bob Feng <bob.c.feng@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>
> 主题: [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@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>
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex
2020-10-30 0:09 [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex fengyunhua
2020-10-30 1:03 ` 回复: " gaoliming
@ 2020-11-02 5:26 ` Bob Feng
2020-11-03 1:15 ` 回复: " gaoliming
1 sibling, 1 reply; 4+ messages in thread
From: Bob Feng @ 2020-11-02 5:26 UTC (permalink / raw)
To: devel@edk2.groups.io, fengyunhua@byosoft.com.cn
Cc: Liming Gao, Chen, Christine
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of fengyunhua
Sent: Friday, October 30, 2020 8:09 AM
To: devel@edk2.groups.io
Cc: Feng, Bob C <bob.c.feng@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>; Chen, Christine <yuwei.chen@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@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>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* 回复: [edk2-devel] [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex
2020-11-02 5:26 ` [edk2-devel] " Bob Feng
@ 2020-11-03 1:15 ` gaoliming
0 siblings, 0 replies; 4+ messages in thread
From: gaoliming @ 2020-11-03 1:15 UTC (permalink / raw)
To: devel, bob.c.feng, fengyunhua; +Cc: 'Chen, Christine'
Create PR https://github.com/tianocore/edk2/pull/1073
> -----邮件原件-----
> 发件人: bounce+27952+66854+4905953+8761045@groups.io
> <bounce+27952+66854+4905953+8761045@groups.io> 代表 Bob Feng
> 发送时间: 2020年11月2日 13:26
> 收件人: devel@edk2.groups.io; fengyunhua@byosoft.com.cn
> 抄送: Liming Gao <gaoliming@byosoft.com.cn>; Chen, Christine
> <yuwei.chen@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@intel.com>
>
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of
> fengyunhua
> Sent: Friday, October 30, 2020 8:09 AM
> To: devel@edk2.groups.io
> Cc: Feng, Bob C <bob.c.feng@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Chen, Christine <yuwei.chen@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@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>
> ---
> 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
>
>
>
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-03 1:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-30 0:09 [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex fengyunhua
2020-10-30 1:03 ` 回复: " gaoliming
2020-11-02 5:26 ` [edk2-devel] " Bob Feng
2020-11-03 1:15 ` 回复: " gaoliming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox