summaryrefslogtreecommitdiffstats
path: root/sensorhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sensorhandler.cpp')
-rw-r--r--sensorhandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 6503db8..b3381f3 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -117,7 +117,8 @@ int find_openbmc_path(const char *type, const uint8_t num, dbus_interface_t *int
int r;
r = mapper_get_service(bus, objname, &busname);
if (r < 0) {
- fprintf(stderr, "Failed to get system manager busname: %s\n", strerror(-r));
+ fprintf(stderr, "Failed to get %s busname: %s\n",
+ objname, strerror(-r));
goto final;
}
@@ -136,7 +137,8 @@ int find_openbmc_path(const char *type, const uint8_t num, dbus_interface_t *int
r = mapper_get_service(bus, str2, &str1);
if (r < 0) {
- fprintf(stderr, "Failed to get item busname: %s\n", strerror(-r));
+ fprintf(stderr, "Failed to get %s busname: %s\n",
+ str2, strerror(-r));
goto final;
}
OpenPOWER on IntegriCloud