diff options
author | Irene Park <ipark@nvidia.com> | 2020-12-29 09:46:54 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-01-06 02:57:38 +0000 |
commit | 21e1dc286e799830bb159e3afc6f1be71a3c382a (patch) | |
tree | 8f84e94725449973b2aba534bf79fd691b8b9a9f /BaseTools | |
parent | 20b292d0cdf7dce58d824fdf9ab1613c2a1ad2ec (diff) | |
download | edk2-21e1dc286e799830bb159e3afc6f1be71a3c382a.tar.gz |
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.py | 2 |
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
|