From 21e1dc286e799830bb159e3afc6f1be71a3c382a Mon Sep 17 00:00:00 2001 From: Irene Park Date: Tue, 29 Dec 2020 09:46:54 +0800 Subject: 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 Reviewed-by: Bob Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/AutoGen/GenPcdDb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BaseTools') 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 -- cgit v1.2.3