public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error
@ 2023-09-22  6:47 Yuwei Chen
  2023-10-18 17:16 ` Rebecca Cran
  2023-10-24  1:04 ` 回复: " gaoliming via groups.io
  0 siblings, 2 replies; 3+ messages in thread
From: Yuwei Chen @ 2023-09-22  6:47 UTC (permalink / raw)
  To: devel; +Cc: Rebecca Cran, Liming Gao, Bob Feng

As the error is changed to warning, Trim.py will skip the build
error when the source code have exactly issue.
This patch change warning to error to opens the checking.

Cc: Rebecca Cran <rebecca@bsdio.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
---
 BaseTools/Source/Python/Trim/Trim.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py
index c479f7d2b2e7..416935df5e90 100644
--- a/BaseTools/Source/Python/Trim/Trim.py
+++ b/BaseTools/Source/Python/Trim/Trim.py
@@ -281,10 +281,10 @@ def DoInclude(Source, Indent='', IncludePathList=[], LocalSearchPath=None, Inclu
                         F = File.readlines()
                 break
         else:
-            EdkLogger.warn("Trim", "Failed to find include file %s" % Source)
+            EdkLogger.error("Trim", "Failed to find include file %s" % Source)
             return []
     except:
-        EdkLogger.warn("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
+        EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
         return []
 
 
-- 
2.27.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108979): https://edk2.groups.io/g/devel/message/108979
Mute This Topic: https://groups.io/mt/101516516/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error
  2023-09-22  6:47 [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error Yuwei Chen
@ 2023-10-18 17:16 ` Rebecca Cran
  2023-10-24  1:04 ` 回复: " gaoliming via groups.io
  1 sibling, 0 replies; 3+ messages in thread
From: Rebecca Cran @ 2023-10-18 17:16 UTC (permalink / raw)
  To: Yuwei Chen, devel; +Cc: Liming Gao, Bob Feng

Reviewed-by: Rebecca Cran <rebecca@bsdio.com>


On 9/22/23 00:47, Yuwei Chen wrote:
> As the error is changed to warning, Trim.py will skip the build
> error when the source code have exactly issue.
> This patch change warning to error to opens the checking.
>
> Cc: Rebecca Cran <rebecca@bsdio.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
> ---
>   BaseTools/Source/Python/Trim/Trim.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py
> index c479f7d2b2e7..416935df5e90 100644
> --- a/BaseTools/Source/Python/Trim/Trim.py
> +++ b/BaseTools/Source/Python/Trim/Trim.py
> @@ -281,10 +281,10 @@ def DoInclude(Source, Indent='', IncludePathList=[], LocalSearchPath=None, Inclu
>                           F = File.readlines()
>                   break
>           else:
> -            EdkLogger.warn("Trim", "Failed to find include file %s" % Source)
> +            EdkLogger.error("Trim", "Failed to find include file %s" % Source)
>               return []
>       except:
> -        EdkLogger.warn("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
> +        EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
>           return []
>   
>   


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109767): https://edk2.groups.io/g/devel/message/109767
Mute This Topic: https://groups.io/mt/101516516/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 3+ messages in thread

* 回复: [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error
  2023-09-22  6:47 [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error Yuwei Chen
  2023-10-18 17:16 ` Rebecca Cran
@ 2023-10-24  1:04 ` gaoliming via groups.io
  1 sibling, 0 replies; 3+ messages in thread
From: gaoliming via groups.io @ 2023-10-24  1:04 UTC (permalink / raw)
  To: devel, yuwei.chen; +Cc: 'Rebecca Cran', 'Bob Feng'

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Yuwei Chen
> 发送时间: 2023年9月22日 14:47
> 收件人: devel@edk2.groups.io
> 抄送: Rebecca Cran <rebecca@bsdio.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Bob Feng <bob.c.feng@intel.com>
> 主题: [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error
> 
> As the error is changed to warning, Trim.py will skip the build
> error when the source code have exactly issue.
> This patch change warning to error to opens the checking.
> 
> Cc: Rebecca Cran <rebecca@bsdio.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Signed-off-by: Yuwei Chen <yuwei.chen@intel.com>
> ---
>  BaseTools/Source/Python/Trim/Trim.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/BaseTools/Source/Python/Trim/Trim.py
> b/BaseTools/Source/Python/Trim/Trim.py
> index c479f7d2b2e7..416935df5e90 100644
> --- a/BaseTools/Source/Python/Trim/Trim.py
> +++ b/BaseTools/Source/Python/Trim/Trim.py
> @@ -281,10 +281,10 @@ def DoInclude(Source, Indent='', IncludePathList=[],
> LocalSearchPath=None, Inclu
>                          F = File.readlines()
>                  break
>          else:
> -            EdkLogger.warn("Trim", "Failed to find include file %s" %
> Source)
> +            EdkLogger.error("Trim", "Failed to find include file %s" %
> Source)
>              return []
>      except:
> -        EdkLogger.warn("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
> +        EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source)
>          return []
> 
> 
> --
> 2.27.0.windows.1
> 
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109969): https://edk2.groups.io/g/devel/message/109969
Mute This Topic: https://groups.io/mt/102149316/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-24  1:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22  6:47 [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error Yuwei Chen
2023-10-18 17:16 ` Rebecca Cran
2023-10-24  1:04 ` 回复: " gaoliming via groups.io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox