From c7fbc58b94e49284b5e5874110251dd7b45f7ec0 Mon Sep 17 00:00:00 2001 From: Ryan Chane <103678133+rchane@users.noreply.github.com> Date: Sat, 1 Feb 2025 10:28:27 -0800 Subject: [PATCH] CR-1216478 xrt-smi still prints 'operation canceled' (#8734) Signed-off-by: Ryan Chane --- src/runtime_src/core/tools/common/XBUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime_src/core/tools/common/XBUtilities.cpp b/src/runtime_src/core/tools/common/XBUtilities.cpp index b931fbf4a0..221bac6fc7 100755 --- a/src/runtime_src/core/tools/common/XBUtilities.cpp +++ b/src/runtime_src/core/tools/common/XBUtilities.cpp @@ -495,7 +495,7 @@ XBUtilities::print_exception(const std::system_error& e) // Remove the type of error from the message. const std::string msg = std::regex_replace(e.what(), std::regex(std::string(": ") + e.code().message()), ""); - if (!msg.empty()) + if ((!msg.empty()) && (!boost::icontains(msg, "operation canceled"))) std::cerr << boost::format("ERROR: %s\n") % msg; } catch (const std::exception&)