From 819ddd42e387db5dfa545a36663fe30146a6df7b Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 5 Oct 2016 21:19:19 -0400 Subject: Print failing object path after failed bus lookup Change-Id: I599d8297b4d2fd45831443685ea5b7d53f1515b6 Signed-off-by: Brad Bishop --- testaddsel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testaddsel.cpp') 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 +} -- cgit v1.2.1