diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2016-10-05 21:19:19 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-10-06 14:23:59 +0000 |
commit | 819ddd42e387db5dfa545a36663fe30146a6df7b (patch) | |
tree | 71943aa3fa23895ac3b7f0e7c36fb37b6f52c84b /host-services.c | |
parent | bc759884ccc7bdb838a8cce3fe6d8d9c648dadc7 (diff) | |
download | phosphor-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 'host-services.c')
-rw-r--r-- | host-services.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host-services.c b/host-services.c index 4c8fc7c..b0b12ae 100644 --- a/host-services.c +++ b/host-services.c @@ -45,7 +45,8 @@ static int soft_power_off(sd_bus_message *m, void *userdata, sd_bus_error *ret_e sd_bus *bus = ipmid_get_sd_bus_connection(); rc = mapper_get_service(bus, object_name, &bus_name); if (rc < 0) { - fprintf(stderr, "Failed to get bus name, return value: %s.\n", strerror(-rc)); + fprintf(stderr, "Failed to get %s bus name: %s\n", + object_name, strerror(-rc)); goto finish; } rc = sd_bus_call_method(bus, // In the System Bus |