From aeb6c61f54b7167cc4034360ac2cf29b3c07b49d Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Thu, 27 Jul 2023 15:18:28 -0500 Subject: [PATCH] Change reset power error message to logging Since the reset will continue if the reset power and current power is the same, error may confuse the user. Change-Id: I35b9ef17afd47b5af5bd2b8882a44f63991fe509 --- python_smi_tools/rocm_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index 95f7e2510f..27302cc50a 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -1357,7 +1357,7 @@ def setPowerOverDrive(deviceList, value, autoRespond): RETCODE = 1 continue if new_power_cap.value == current_power_cap.value: - printErrLog(device,'Max power was already at: {}W'.format(new_power_cap.value / 1000000)) + printLog(device,'Max power was already at: {}W'.format(new_power_cap.value / 1000000)) if current_power_cap.value < default_power_cap.value: current_power_cap.value = default_power_cap.value