ROCm SMI CLI: Fix printErrLog Arguments

This patch removes every erroneous occurance of a third argument
when calling printErrLog(device, err), since it takes two arguments.

Signed-off-by: Ori Messinger <Ori.Messinger@amd.com>
Change-Id: I5971cc68b69c86f37c69f44e4785dabfc82c7955
This commit is contained in:
Ori Messinger
2021-11-03 04:45:47 -04:00
parent 13cde8429d
commit 40eed25a3b
+5 -5
View File
@@ -2295,7 +2295,7 @@ def showAccessibleTopology(deviceList):
if rsmi_ret_ok(ret):
gpu_links_type[srcdevice][destdevice] = accessible.value
else:
printErrLog(srcdevice, 'Cannot read link accessibility: Unsupported on this machine', None)
printErrLog(srcdevice, 'Cannot read link accessibility: Unsupported on this machine')
if PRINT_JSON:
formatMatrixToJSON(deviceList, gpu_links_type, "(Topology) Link accessibility between DRM devices {} and {}")
return
@@ -2334,7 +2334,7 @@ def showWeightTopology(deviceList):
if rsmi_ret_ok(ret):
gpu_links_weight[srcdevice][destdevice] = weight
else:
printErrLog(srcdevice, 'Cannot read Link Weight: Not supported on this machine', None)
printErrLog(srcdevice, 'Cannot read Link Weight: Not supported on this machine')
if PRINT_JSON:
formatMatrixToJSON(deviceList, gpu_links_weight, "(Topology) Weight between DRM devices {} and {}")
@@ -2377,7 +2377,7 @@ def showHopsTopology(deviceList):
if rsmi_ret_ok(ret):
gpu_links_hops[srcdevice][destdevice] = hops
else:
printErrLog(srcdevice, 'Cannot read Link Hops: Not supported on this machine', None)
printErrLog(srcdevice, 'Cannot read Link Hops: Not supported on this machine')
if PRINT_JSON:
formatMatrixToJSON(deviceList, gpu_links_hops, "(Topology) Hops between DRM devices {} and {}")
@@ -2425,7 +2425,7 @@ def showTypeTopology(deviceList):
else:
gpu_links_type[srcdevice][destdevice] = "XXXX"
else:
printErrLog(srcdevice, 'Cannot read Link Type: Not supported on this machine', None)
printErrLog(srcdevice, 'Cannot read Link Type: Not supported on this machine')
if PRINT_JSON:
formatMatrixToJSON(deviceList, gpu_links_type, "(Topology) Link type between DRM devices {} and {}")
return
@@ -2466,7 +2466,7 @@ def showNumaTopology(deviceList):
if rsmi_ret_ok(ret):
printLog(device, "(Topology) Numa Affinity", numa_numbers.value)
else:
printErrLog(device, 'Cannot read Numa Affinity', None)
printErrLog(device, 'Cannot read Numa Affinity')
def showHwTopology(deviceList):