mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 16:57:18 +00:00
trivial: dell: show reasons for lack of updates in UpdateError
``` └─XPS 13 7390 TPM 2.0: Device ID: c56e9f77cfee65151bdef90310776f9d62827f5a Summary: Platform TPM device Current version: 7.2.1.0 Vendor: Dell Inc. Update Error: Updating disabled due to TPM owernship Flags: internal|require-ac|registered ```
This commit is contained in:
parent
26563d750f
commit
43742bcd3b
@ -637,8 +637,8 @@ fu_plugin_dell_detect_tpm (FuPlugin *plugin, GError **error)
|
||||
}
|
||||
fu_device_set_flashes_left (dev, out->flashes_left);
|
||||
} else {
|
||||
g_debug ("%s updating disabled due to TPM ownership",
|
||||
pretty_tpm_name);
|
||||
fu_device_set_update_error (dev,
|
||||
"Updating disabled due to TPM ownership");
|
||||
}
|
||||
fu_plugin_device_register (plugin, dev);
|
||||
|
||||
@ -666,8 +666,7 @@ fu_plugin_dell_detect_tpm (FuPlugin *plugin, GError **error)
|
||||
if ((out->status & TPM_OWN_MASK) == 0 && out->flashes_left > 0) {
|
||||
fu_device_set_flashes_left (dev_alt, out->flashes_left);
|
||||
} else {
|
||||
g_debug ("%s mode switch disabled due to TPM ownership",
|
||||
pretty_tpm_name);
|
||||
fu_device_set_update_error (dev_alt, "mode switch disabled due to TPM ownership");
|
||||
}
|
||||
fu_plugin_device_register (plugin, dev_alt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user