trivial: Add VersionFormat to the fu_device_to_string() output

This commit is contained in:
Richard Hughes 2018-10-18 16:13:28 +01:00
parent 74fe343213
commit cdcd6a2423

View File

@ -1477,6 +1477,10 @@ fu_device_to_string (FuDevice *self)
tmp = fwupd_device_to_string (FWUPD_DEVICE (self));
if (tmp != NULL && tmp[0] != '\0')
g_string_append (str, tmp);
if (priv->version_format != FU_VERSION_FORMAT_UNKNOWN) {
fwupd_pad_kv_str (str, "VersionFormat",
fu_common_version_format_to_string (priv->version_format));
}
if (priv->alternate_id != NULL)
fwupd_pad_kv_str (str, "AlternateId", priv->alternate_id);
if (priv->equivalent_id != NULL)