From: Ashraf Ali S Date: Fri, 23 Jul 2021 08:32:23 +0000 (+0530) Subject: UefiCpuPkg: ResetVector Tool additional debug prints X-Git-Tag: edk2-stable202202~502 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=cf7c65059202e7858fbc00ce1f163ee243947e08 UefiCpuPkg: ResetVector Tool additional debug prints REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3506 Before executing the nasm command, added print statement to know what commands are executing. before printing the output file need check the status of command which is executed. if the status is 0 then only print the output file name. Reviewed-by: Ray Ni Cc: Rahul Kumar Cc: Debkumar De Cc: Harry Han Cc: Catharine West Cc: Sangeetha V Signed-off-by: Ashraf Ali S --- diff --git a/UefiCpuPkg/ResetVector/Vtf0/Build.py b/UefiCpuPkg/ResetVector/Vtf0/Build.py index 55f4edd87b..b791d32762 100644 --- a/UefiCpuPkg/ResetVector/Vtf0/Build.py +++ b/UefiCpuPkg/ResetVector/Vtf0/Build.py @@ -32,9 +32,12 @@ for arch in ('ia32', 'x64'): '-o', output, 'Vtf0.nasmb', ) + print(f"Command : {' '.join(commandLine)}") ret = RunCommand(commandLine) + if ret != 0: + print(f"something went wrong while executing {commandLine[-1]}") + sys.exit() print('\tASM\t' + output) - if ret != 0: sys.exit(ret) commandLine = ( 'python',