public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: "'Yunhua Feng'" <fengyunhua@byosoft.com.cn>, <devel@edk2.groups.io>
Cc: "'Bob Feng'" <bob.c.feng@intel.com>,
	"'Yuwei Chen'" <yuwei.chen@intel.com>
Subject: 回复: [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex
Date: Fri, 30 Oct 2020 09:03:20 +0800	[thread overview]
Message-ID: <004501d6ae58$759e44f0$60daced0$@byosoft.com.cn> (raw)
In-Reply-To: <20201030000925.1907-1-fengyunhua@byosoft.com.cn>

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




  reply	other threads:[~2020-10-30  1:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2020-11-02  5:26 ` [edk2-devel] " Bob Feng
2020-11-03  1:15   ` 回复: " gaoliming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004501d6ae58$759e44f0$60daced0$@byosoft.com.cn' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox