Read/Write Boot Count Sensor as int
Change the dbus request to read/write the boot count sensor from byte to int.
Passing a type of byte causes the dbus interfaces to fail with ENXIO (no such device or address).
diff --git a/ipmid.C b/ipmid.C
index 0f4139c..6b45c5c 100644
--- a/ipmid.C
+++ b/ipmid.C
@@ -614,7 +614,7 @@
fprintf(stderr, "Failed to create a method call: %s", strerror(-r));
}
- r = sd_bus_message_append(m, "v", "y", value);
+ r = sd_bus_message_append(m, "v", "i", value);
if (r < 0) {
fprintf(stderr, "Failed to create a input parameter: %s", strerror(-r));
}
@@ -630,4 +630,4 @@
sd_bus_message_unref(m);
return 0;
-}
\ No newline at end of file
+}