]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix the improper error logging
authorIrene Park <ipark@nvidia.com>
Tue, 29 Dec 2020 01:46:54 +0000 (09:46 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 6 Jan 2021 02:57:38 +0000 (02:57 +0000)
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>
BaseTools/Source/Python/AutoGen/GenPcdDb.py

index 0870c44146c961cc8f2fa433e16ee033284b9d87..ad5dae0e5a2f6ab49cd5149f9fab54ed8938619f 100644 (file)
@@ -894,7 +894,7 @@ def CreatePcdDataBase(PcdDBData):
     delta = {}\r
     for skuname, skuid in PcdDBData:\r
         if len(PcdDBData[(skuname, skuid)][1]) != len(PcdDBData[(TAB_DEFAULT, "0")][1]):\r
-            EdkLogger.ERROR("The size of each sku in one pcd are not same")\r
+            EdkLogger.error("build", AUTOGEN_ERROR, "The size of each sku in one pcd are not same")\r
     for skuname, skuid in PcdDBData:\r
         if skuname == TAB_DEFAULT:\r
             continue\r