[SWDEV-495169] Update err output to log_err (#24)
Update status type for EPERM and ENOENT based on feedback from ticket. Update error output to LOG_ERR. --------- Signed-off-by: Juan Castillo <juan.castillo@amd.com>
This commit is contained in:
1 parent
7323881957
commit
60492e754f
2 files changed
+19
-8
No files matched your search
@@ -1982,22 +1982,31 @@ def showAllConcise(deviceList):
|
||||
+ getComputePartition(device, silent)
|
||||
+ ", " + getPartitionId(device, silent))
|
||||
sclk = showCurrentClocks([device], 'sclk', concise=silent)
|
||||
if not sclk:
|
||||
sclk = 'N/A'
|
||||
mclk = showCurrentClocks([device], 'mclk', concise=silent)
|
||||
if not mclk:
|
||||
mclk = 'N/A'
|
||||
(retCode, fanLevel, fanSpeed) = getFanSpeed(device, silent)
|
||||
fan = str(fanSpeed) + '%'
|
||||
if retCode == rsmi_status_t.RSMI_STATUS_SUCCESS:
|
||||
fan = str(fanSpeed) + '%'
|
||||
else:
|
||||
fan = 'N/A'
|
||||
if getPerfLevel(device, silent) != -1:
|
||||
perf = getPerfLevel(device, silent)
|
||||
else:
|
||||
perf = 'Unsupported'
|
||||
perf = 'N/A'
|
||||
if getMaxPower(device, silent) != -1:
|
||||
pwrCap = str(getMaxPower(device, silent)) + 'W'
|
||||
else:
|
||||
pwrCap = 'Unsupported'
|
||||
pwrCap = 'N/A'
|
||||
if getGpuUse(device, silent) != -1:
|
||||
gpu_busy = str(getGpuUse(device, silent)) + '%'
|
||||
else:
|
||||
gpu_busy = 'Unsupported'
|
||||
gpu_busy = 'N/A'
|
||||
allocated_mem_percent = getAllocatedMemoryPercent(device)
|
||||
if allocated_mem_percent['ret'] != rsmi_status_t.RSMI_STATUS_SUCCESS:
|
||||
allocated_mem_percent['combined'] = 'N/A'
|
||||
|
||||
# Top Row - per device data
|
||||
values['card%s' % (str(device))] = [device, getNodeId(device),
|
||||
|
||||
Reference in new issue
Block a user