summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorIrene Park <ipark@nvidia.com>2020-12-29 09:46:54 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-01-06 02:57:38 +0000
commit21e1dc286e799830bb159e3afc6f1be71a3c382a (patch)
tree8f84e94725449973b2aba534bf79fd691b8b9a9f /BaseTools
parent20b292d0cdf7dce58d824fdf9ab1613c2a1ad2ec (diff)
downloadedk2-21e1dc286e799830bb159e3afc6f1be71a3c382a.tar.gz
edk2-21e1dc286e799830bb159e3afc6f1be71a3c382a.tar.bz2
edk2-21e1dc286e799830bb159e3afc6f1be71a3c382a.zip
BaseTools: Fix the improper error logging
EdkLogger.ERROR() was replaced with EdkLogger.error() to deliver the expected error message when an error occurs. Signed-off-by: Irene Park <ipark@nvidia.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/AutoGen/GenPcdDb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/GenPcdDb.py b/BaseTools/Source/Python/AutoGen/GenPcdDb.py
index 0870c44146..ad5dae0e5a 100644
--- a/BaseTools/Source/Python/AutoGen/GenPcdDb.py
+++ b/BaseTools/Source/Python/AutoGen/GenPcdDb.py
@@ -894,7 +894,7 @@ def CreatePcdDataBase(PcdDBData):
delta = {}
for skuname, skuid in PcdDBData:
if len(PcdDBData[(skuname, skuid)][1]) != len(PcdDBData[(TAB_DEFAULT, "0")][1]):
- EdkLogger.ERROR("The size of each sku in one pcd are not same")
+ EdkLogger.error("build", AUTOGEN_ERROR, "The size of each sku in one pcd are not same")
for skuname, skuid in PcdDBData:
if skuname == TAB_DEFAULT:
continue