From 688c7d21b97d8ed6bfba72299c43c22a7b707064 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Tue, 25 Jul 2017 13:38:30 +0800 Subject: [PATCH] BaseTools: Fix the bug that warn() function with only 1 argument In the definition, the warn() function takes at least 2 arguments. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/build/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index eff1e66b08..4d05ee2761 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -890,7 +890,7 @@ class Build(): for Tool in self.ToolChainList: if TAB_TOD_DEFINES_FAMILY not in ToolDefinition or Tool not in ToolDefinition[TAB_TOD_DEFINES_FAMILY] \ or not ToolDefinition[TAB_TOD_DEFINES_FAMILY][Tool]: - EdkLogger.warn("No tool chain family found in configuration for %s. Default to MSFT." % Tool) + EdkLogger.warn("build", "No tool chain family found in configuration for %s. Default to MSFT." % Tool) ToolChainFamily.append("MSFT") else: ToolChainFamily.append(ToolDefinition[TAB_TOD_DEFINES_FAMILY][Tool]) -- 2.39.2