[edk2-devel] 回复: [PATCH] BaseTools: Fix the improper error logging

gaoliming gaoliming at byosoft.com.cn
Mon Jan 4 01:01:36 UTC 2021


Good catch. Reviewed-by: Liming Gao <gaoliming at byosoft.com.cn>

> -----邮件原件-----
> 发件人: Name <ipark at nvidia.com>
> 发送时间: 2020年12月29日 9:47
> 收件人: devel at edk2.groups.io; bob.c.feng at intel.com;
> gaoliming at byosoft.com.cn
> 抄送: Irene Park <ipark at nvidia.com>
> 主题: [PATCH] BaseTools: Fix the improper error logging
> 
> From: Irene Park <ipark at nvidia.com>
> 
> EdkLogger.ERROR() was replaced with EdkLogger.error() to deliver the
> expected error message when an error occurs.
> 
> Signed-off-by: Irene Park <ipark at nvidia.com>
> 
> ---
>  BaseTools/Source/Python/AutoGen/GenPcdDb.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/BaseTools/Source/Python/AutoGen/GenPcdDb.py
> b/BaseTools/Source/Python/AutoGen/GenPcdDb.py
> index 0870c44..ad5dae0 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
> --
> 2.7.4





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69519): https://edk2.groups.io/g/devel/message/69519
Mute This Topic: https://groups.io/mt/79415001/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list