From 42b0e1c5498ee4f68d562ca0a101b511a79302cd Mon Sep 17 00:00:00 2001 From: Harish Kasiviswanathan Date: Tue, 27 Jul 2021 14:22:22 -0400 Subject: [PATCH] rocm_smi.py: Remove extraneous line during process termination During the tail end when process is terminating, subprocess module fails to find the process. This results in extraneous printing of a line with char 'b'. Fix this. BUG: SWDEV-296409 Signed-off-by: Harish Kasiviswanathan Change-Id: I39aacf8ae948a5acec0aa93296cc0e0aec88b3ef [ROCm/rocm_smi_lib commit: cef19745d1100a600fc00d280fad5ff0acad4cc7] --- projects/rocm-smi-lib/python_smi_tools/rocm_smi.py | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py index f1fedf3e7f..5fc1fb2baf 100755 --- a/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py +++ b/projects/rocm-smi-lib/python_smi_tools/rocm_smi.py @@ -265,7 +265,6 @@ def getProcessName(pid): try: pName = str(subprocess.check_output("ps -p %d -o comm=" % (int(pid)), shell=True)) except subprocess.CalledProcessError as e: - print(e.output) pName = 'UNKNOWN' if pName == None: