summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYuwei Chen <yuwei.chen@intel.com>2023-09-22 14:47:08 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-10-18 18:17:19 +0000
commitb75d9f556d6f290a4037064a2b934f5a3396328c (patch)
treead9f9179c59df63c887fc73bd59520dc34000b77 /BaseTools
parent7fe49887c4d227e585d5aa5530ee8a8d79d5fa1e (diff)
downloadedk2-b75d9f556d6f290a4037064a2b934f5a3396328c.tar.gz
edk2-b75d9f556d6f290a4037064a2b934f5a3396328c.tar.bz2
edk2-b75d9f556d6f290a4037064a2b934f5a3396328c.zip
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> Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Trim/Trim.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py
index c479f7d2b2..416935df5e 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 []