summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorJake Garver via groups.io <jake=nvidia.com@groups.io>2022-01-21 07:58:24 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-02-07 03:29:20 +0000
commitd4ac53aa91b8a3602166c6adcb9ba8678e0ae969 (patch)
tree0e86687d7c07525700279f7d9903ae519d5fc898 /BaseTools
parentc09dbc92e9142ad46b3f73ac0eb5cc283cb81baf (diff)
downloadedk2-d4ac53aa91b8a3602166c6adcb9ba8678e0ae969.tar.gz
edk2-d4ac53aa91b8a3602166c6adcb9ba8678e0ae969.tar.bz2
edk2-d4ac53aa91b8a3602166c6adcb9ba8678e0ae969.zip
BaseTools: Fix error leg in DscBuildData.py
Fix a Edk2Logger.warn() message format to match the arguments. We ran into this after a failure in PcdValueInit. The failure was masked by a new exception, "TypeError: not all arguments converted during string formatting". Signed-off-by: Jake Garver <jake@nvidia.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 35ec5b37ff..d29b9bf13d 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -3033,7 +3033,7 @@ class DscBuildData(PlatformBuildClassObject):
returncode, StdOut, StdErr = DscBuildData.ExecuteCommand (Command)
EdkLogger.verbose ('%s\n%s\n%s' % (Command, StdOut, StdErr))
if returncode != 0:
- EdkLogger.warn('Build', COMMAND_FAILURE, 'Can not collect output from command: %s\n%s\n' % (Command, StdOut, StdErr))
+ EdkLogger.warn('Build', COMMAND_FAILURE, 'Can not collect output from command: %s\n%s\n%s\n' % (Command, StdOut, StdErr))
#start update structure pcd final value
File = open (OutputValueFile, 'r')