Allow esels to be sent to dbus event log
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/ipmid.C b/ipmid.C
index 6514849..11bd53e 100644
--- a/ipmid.C
+++ b/ipmid.C
@@ -15,6 +15,7 @@
sd_bus *bus = NULL;
+FILE *ipmiio, *ipmidbus, *ipmicmddetails;
// Channel that is used for OpenBMC Barreleye
const char * DBUS_NAME = "org.openbmc.HostIpmi";
@@ -440,7 +441,6 @@
int r;
-
r = sd_bus_message_new_method_call(bus,&m,interface->bus,interface->path,"org.freedesktop.DBus.Properties","Get");
if (r < 0) {
fprintf(stderr, "Failed to create a method call: %s", strerror(-r));
@@ -477,6 +477,7 @@
return r;
}
+
// Use a lookup table to find the interface name of a specific sensor
// This will be used until an alternative is found. this is the first
// step for mapping IPMI
@@ -522,9 +523,6 @@
interface->sensornumber = num;
- printf("%s\n", str2);
-
-
final:
sd_bus_error_free(&error);