From 673087e6a0434588fbda5ca41d6e5a876ece158f Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Fri, 12 Jan 2024 15:18:53 -0600 Subject: [PATCH] Remove word 'error' from non-error message This simplifies grep lookup Change-Id: I46cd13e0ab414791655fd93e8dcf270a946a6687 Signed-off-by: Galantsev, Dmitrii [ROCm/rocm_smi_lib commit: 147af192b52e649895aab91fe5551dc9009f6363] --- projects/rocm-smi-lib/src/rocm_smi_device.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocm-smi-lib/src/rocm_smi_device.cc b/projects/rocm-smi-lib/src/rocm_smi_device.cc index 60d344f598..59ac89de3a 100755 --- a/projects/rocm-smi-lib/src/rocm_smi_device.cc +++ b/projects/rocm-smi-lib/src/rocm_smi_device.cc @@ -697,7 +697,7 @@ int Device::readDevInfoStr(DevInfoTypes type, std::string *retStr) { << " | " << (fs.fail() ? "[ERROR] Failed read - format error" : "[GOOD] No fail - Successful read operation") << " | " << (fs.eof() ? "[ERROR] Failed read - EOF error" : - "[GOOD] No eof error - Successful read operation") + "[GOOD] No eof - Successful read operation") << " | " << (fs.good() ? "[GOOD] read good - Successful read operation" : "[ERROR] Failed read - good error"); LOG_INFO(ss); @@ -759,7 +759,7 @@ int Device::writeDevInfoStr(DevInfoTypes type, std::string valStr, << " | " << (fs.fail() ? "[ERROR] Failed write - format error" : "[GOOD] No fail - Successful write operation") << " | " << (fs.eof() ? "[ERROR] Failed write - EOF error" : - "[GOOD] No eof error - Successful write operation") + "[GOOD] No eof - Successful write operation") << " | " << (fs.good() ? "[GOOD] Write good - Successful write operation" : "[ERROR] Failed write - good error");