From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8BF2BAC0CBB for ; Fri, 22 Sep 2023 06:47:28 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=trKyP7LW9HSWquJhzImnfHki2kkGeIUoe4b073/LMeg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1695365247; v=1; b=calBuaEyEPMQwHGXjQYD6GeJe/zJc/etEa5KKbPTVLcDHQzDJ/UgweMWeyQB+/BP7OC3eueI aajNSGroxpKI2nvOGvYLinSdP7JXd4O0rMwfqhidXBslxXpIoL7efEePgLb3V6dmsi0huBKBZnY SzfT1PL1jA34HtHvcg4O4cSM= X-Received: by 127.0.0.2 with SMTP id NgZqYY7687511x7aJlYYgh5f; Thu, 21 Sep 2023 23:47:27 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.15651.1695365246220135173 for ; Thu, 21 Sep 2023 23:47:26 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="361008824" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="361008824" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 23:47:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="812956162" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="812956162" X-Received: from yuweipc.ccr.corp.intel.com ([10.239.158.55]) by fmsmga008.fm.intel.com with ESMTP; 21 Sep 2023 23:47:24 -0700 From: "Yuwei Chen" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng Subject: [edk2-devel] [PATCH 1/1] BaseTools: trim warning to error Date: Fri, 22 Sep 2023 14:47:08 +0800 Message-Id: <20230922064708.1843-1-yuwei.chen@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yuwei.chen@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: unNqbc7Ne0ufDlGXSEYzaXQIx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=calBuaEy; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 Cc: Liming Gao Cc: Bob Feng Signed-off-by: Yuwei Chen --- 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] -=-=-=-=-=-=-=-=-=-=-=-