trivial: Show the firmware GType in the device ->to_string()

This commit is contained in:
Richard Hughes 2022-02-16 22:15:37 +00:00
parent 50b52aef0d
commit eb6ba4eafb

View File

@ -3381,6 +3381,12 @@ fu_device_add_string(FuDevice *self, guint idt, GString *str)
idt + 1,
"BatteryThreshold",
priv->battery_threshold);
if (priv->firmware_gtype != G_TYPE_INVALID) {
fu_common_string_append_kv(str,
idt + 1,
"FirmwareGType",
g_type_name(priv->firmware_gtype));
}
if (priv->size_min > 0) {
g_autofree gchar *sz = g_strdup_printf("%" G_GUINT64_FORMAT, priv->size_min);
fu_common_string_append_kv(str, idt + 1, "FirmwareSizeMin", sz);