summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2016-10-05 21:19:19 -0400
committerPatrick Williams <patrick@stwcx.xyz>2016-10-06 14:23:59 +0000
commit819ddd42e387db5dfa545a36663fe30146a6df7b (patch)
tree71943aa3fa23895ac3b7f0e7c36fb37b6f52c84b /ipmid.cpp
parentbc759884ccc7bdb838a8cce3fe6d8d9c648dadc7 (diff)
downloadphosphor-host-ipmid-819ddd42e387db5dfa545a36663fe30146a6df7b.tar.gz
phosphor-host-ipmid-819ddd42e387db5dfa545a36663fe30146a6df7b.zip
Print failing object path after failed bus lookup
Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index 9e267bc..84d37ea 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -274,7 +274,8 @@ void cache_restricted_mode()
rc = mapper_get_service(bus, settings_host_object, &busname);
if (rc < 0) {
- fprintf(stderr, "Failed to get HOST busname: %s\n", strerror(-rc));
+ fprintf(stderr, "Failed to get %s busname: %s\n",
+ settings_host_object, strerror(-rc));
goto cleanup;
}
rc = sd_bus_call_method(bus,
OpenPOWER on IntegriCloud