summaryrefslogtreecommitdiffstats
path: root/testaddsel.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 /testaddsel.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 'testaddsel.cpp')
-rw-r--r--testaddsel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testaddsel.cpp b/testaddsel.cpp
index 9fd9d35..4023629 100644
--- a/testaddsel.cpp
+++ b/testaddsel.cpp
@@ -27,7 +27,8 @@ int find_openbmc_path(const char *type, const uint8_t num, dbus_interface_t *int
r = mapper_get_service(bus, objname, &busname);
if (r < 0) {
- fprintf(stderr, "Failed to get busname: %s\n", strerror(-r));
+ fprintf(stderr, "Failed to get %s busname: %s\n",
+ objname, strerror(-r));
goto final;
}
@@ -110,4 +111,4 @@ finish:
sd_bus_unref(bus);
return 0;
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud