From nobody Fri May 10 01:09:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66774+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66774+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1604016602; cv=none; d=zohomail.com; s=zohoarc; b=jHNe67M4HJONc+349wngqb7yOZhE/TFesKXqArXLpXm70csHHd9nIkdljPYttQkJJ/y4DUrbLG5wD/jnANYLBpy47fs6eos1oabZTYG2mbzf7o0bHqPttkTXoJnbJeK9nnNJJ8cff4p6stvCHc1u7qHWdNhEqTjbRzjBK9fW6u0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604016602; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=d4rRcWY3qMa99q9qy8fe/oH64a61CaqmMyv50V0RtmY=; b=V0kHf+Bd5hqzCiuaDe95+83ehyrep02BYWHgBbC7t8BusDYSbRS5mEmGqc1AXWYmdlj59XpfLG6wM6pc8ifUeDo9webN7ezJZNhhaE1KXYq5QZUxSoUJ3jAzzVIU4w3wpsQCZajRJj5msMxSRrmxmn1wpib3XCVAXCJIo8ioqTU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66774+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1604016602420865.9546268671145; Thu, 29 Oct 2020 17:10:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id X4llYY1788612xAeIIVKt40W; Thu, 29 Oct 2020 17:10:02 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.6221.1604016595737212640 for ; Thu, 29 Oct 2020 17:09:56 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 30 Oct 2020 08:09:44 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn From: "fengyunhua" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH v2] BaseTools: Update the FV Space Information to display decimal and Hex Date: Fri, 30 Oct 2020 08:09:25 +0800 Message-Id: <20201030000925.1907-1-fengyunhua@byosoft.com.cn> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,fengyunhua@byosoft.com.cn X-Gm-Message-State: 93SBb0zfjy4LplFQsZZw7omex1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1604016602; bh=fkc+oI8yf/xVExkFTN2yKtmCf9Va/U/Ea+1oM++oeLU=; h=Cc:Date:From:Reply-To:Subject:To; b=o1MwLWStM2bxxoJMTPtzy9zbznGg+nf+q1wyKxkdr3pLSeyzgyALQDZ4+010r8r+iTp FMzt37RvPDHn58VXnjpe56bAzngqRlsbJabPBZ8eQy9SD+9uMXn2HohMqNId4SUuXx18Z 0xobqL7ky3slw+wEI0H3MwSlLBkbLQN7u58= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3009 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 Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng Reviewed-by: Bob Feng Reviewed-by: Liming Gao --- 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/Py= thon/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) + ' (' + h= ex(UsedSizeValue) + ')' + ' used, '\ + + str(FreeSizeValue) + ' (' + h= ex(FreeSizeValue) + ')' + ' free') =20 ## PreprocessImage() # --=20 2.27.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#66774): https://edk2.groups.io/g/devel/message/66774 Mute This Topic: https://groups.io/mt/77901417/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-