summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2017-11-07 22:52:07 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-11-16 20:35:17 +0000
commit795d984d7113a237939d2d9c1cdbf71146a04144 (patch)
tree3954f3126209b06dffd217ea72b2f71a964784f0
parentee201a5ca4bb67b2b8337f9a5ac3c50f3673040d (diff)
downloadopenpower-pnor-code-mgmt-795d984d7113a237939d2d9c1cdbf71146a04144.tar.gz
openpower-pnor-code-mgmt-795d984d7113a237939d2d9c1cdbf71146a04144.zip
Fix up InternalFailure to include metadata
Scope is to add missing logs for InternalFailure errors Change-Id: I91dce3221b54b55fd562d2ed730614c489eecb55 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
-rw-r--r--item_updater.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/item_updater.cpp b/item_updater.cpp
index adc6f7cab..6b9ec1c67 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -333,22 +333,28 @@ void ItemUpdater::reset()
if (reply.is_method_error())
{
+ log<level::ERR>("Failed to clear read-write partitions",
+ entry("SERVICE_FILE=%s", serviceFile));
elog<InternalFailure>();
}
removeFile(it.first);
}
+ static constexpr auto serviceFile =
+ "obmc-flash-bios-ubiclear@pnor-prsv.service";
// Clear the preserved partition.
auto method = bus.new_method_call(
SYSTEMD_BUSNAME,
SYSTEMD_PATH,
SYSTEMD_INTERFACE,
"StartUnit");
- method.append("obmc-flash-bios-ubiclear@pnor-prsv.service", "replace");
+ method.append(serviceFile, "replace");
auto reply = bus.call(method);
if (reply.is_method_error())
{
+ log<level::ERR>("Failed to clear preserved partition",
+ entry("SERVICE_FILE=%s", serviceFile));
elog<InternalFailure>();
}
OpenPOWER on IntegriCloud