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 <Harish.Kasiviswanathan@amd.com>
Change-Id: I39aacf8ae948a5acec0aa93296cc0e0aec88b3ef
[ROCm/rocm_smi_lib commit: cef19745d1]
This commit is contained in:
committad av
Bill(Shuzhou) Liu
förälder
bb6e5c5a8b
incheckning
42b0e1c549
@@ -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:
|
||||
|
||||
Referens i nytt ärende
Block a user