From 1a344ff02e96cce61fd80cc7fc892ea805ea1158 Mon Sep 17 00:00:00 2001 From: Oksana Salyk Date: Fri, 2 Aug 2024 08:31:18 +0200 Subject: [PATCH] inject output --- src/tests/ras/utils/dimm/dimm.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/ras/utils/dimm/dimm.cc b/src/tests/ras/utils/dimm/dimm.cc index 0972267..541f1cc 100644 --- a/src/tests/ras/utils/dimm/dimm.cc +++ b/src/tests/ras/utils/dimm/dimm.cc @@ -68,8 +68,11 @@ int Dimm::InjectUnsafeShutdown() const { } cmd = ndctl_dimm_cmd_new_smart_inject(dimm_); + std::cout << "CMD output: " << cmd << std::endl; - if (ndctl_cmd_smart_inject_unsafe_shutdown(cmd, true)) { + int ret = ndctl_cmd_smart_inject_unsafe_shutdown(cmd, true); + std::cout << "ndctl_cmd_smart_inject_unsafe_shutdown: " << ret << std::endl; + if (ret) { return -1; }