mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-25 21:57:47 +00:00
trivial: Add VersionFormat to the fu_device_to_string() output
This commit is contained in:
parent
74fe343213
commit
cdcd6a2423
@ -1477,6 +1477,10 @@ fu_device_to_string (FuDevice *self)
|
|||||||
tmp = fwupd_device_to_string (FWUPD_DEVICE (self));
|
tmp = fwupd_device_to_string (FWUPD_DEVICE (self));
|
||||||
if (tmp != NULL && tmp[0] != '\0')
|
if (tmp != NULL && tmp[0] != '\0')
|
||||||
g_string_append (str, tmp);
|
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)
|
if (priv->alternate_id != NULL)
|
||||||
fwupd_pad_kv_str (str, "AlternateId", priv->alternate_id);
|
fwupd_pad_kv_str (str, "AlternateId", priv->alternate_id);
|
||||||
if (priv->equivalent_id != NULL)
|
if (priv->equivalent_id != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user