[edk2-devel] [PATCH v2 2/2] UefiCpuPkg: ResetVector Tool additional debug prints
Ni, Ray
ray.ni at intel.com
Tue Jul 27 05:11:46 UTC 2021
Reviewed-by: Ray Ni <ray.ni at Intel.com>
> -----Original Message-----
> From: S, Ashraf Ali <ashraf.ali.s at intel.com>
> Sent: Friday, July 23, 2021 4:40 PM
> To: devel at edk2.groups.io
> Cc: S, Ashraf Ali <ashraf.ali.s at intel.com>; Ni, Ray <ray.ni at intel.com>; Kumar, Rahul1 <rahul1.kumar at intel.com>; De,
> Debkumar <debkumar.de at intel.com>; Han, Harry <harry.han at intel.com>; West, Catharine <catharine.west at intel.com>; V,
> Sangeetha <sangeetha.v at intel.com>
> Subject: [PATCH v2 2/2] 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.
>
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Rahul Kumar <rahul1.kumar at intel.com>
> Cc: Debkumar De <debkumar.de at intel.com>
> Cc: Harry Han <harry.han at intel.com>
> Cc: Catharine West <catharine.west at intel.com>
> Cc: Sangeetha V <sangeetha.v at intel.com>
> Signed-off-by: Ashraf Ali S <ashraf.ali.s at intel.com>
> ---
> UefiCpuPkg/ResetVector/Vtf0/Build.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> 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',
> --
> 2.30.2.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#78189): https://edk2.groups.io/g/devel/message/78189
Mute This Topic: https://groups.io/mt/84397007/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list