]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix the bug that warn() function with only 1 argument
authorYonghong Zhu <yonghong.zhu@intel.com>
Tue, 25 Jul 2017 05:38:30 +0000 (13:38 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 26 Jul 2017 02:28:14 +0000 (10:28 +0800)
In the definition, the warn() function takes at least 2 arguments.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/build/build.py

index eff1e66b08f327994eddcf605202b4e4a7d69b38..4d05ee27612d22bec11d24c1ef1749c3617d1d18 100644 (file)
@@ -890,7 +890,7 @@ class Build():
         for Tool in self.ToolChainList:\r
             if TAB_TOD_DEFINES_FAMILY not in ToolDefinition or Tool not in ToolDefinition[TAB_TOD_DEFINES_FAMILY] \\r
                or not ToolDefinition[TAB_TOD_DEFINES_FAMILY][Tool]:\r
-                EdkLogger.warn("No tool chain family found in configuration for %s. Default to MSFT." % Tool)\r
+                EdkLogger.warn("build", "No tool chain family found in configuration for %s. Default to MSFT." % Tool)\r
                 ToolChainFamily.append("MSFT")\r
             else:\r
                 ToolChainFamily.append(ToolDefinition[TAB_TOD_DEFINES_FAMILY][Tool])\r