mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-12 22:23:46 +00:00
trivial: Do not show all the HWIDs at daemon startup
The same information can be seen in `/usr/libexec/fwupd/fwupdtool hwids` and for most users verbose mode is turned off -- so we're doing all those expensive allocations for nothing.
This commit is contained in:
parent
aabdc371c1
commit
af2d1c285e
@ -394,7 +394,6 @@ fu_hwids_setup (FuHwids *self, FuSmbios *smbios, GError **error)
|
|||||||
for (guint i = 0; i < 15; i++) {
|
for (guint i = 0; i < 15; i++) {
|
||||||
g_autofree gchar *guid = NULL;
|
g_autofree gchar *guid = NULL;
|
||||||
g_autofree gchar *key = NULL;
|
g_autofree gchar *key = NULL;
|
||||||
g_autofree gchar *values = NULL;
|
|
||||||
g_autoptr(GError) error_local = NULL;
|
g_autoptr(GError) error_local = NULL;
|
||||||
|
|
||||||
/* get the GUID and add to hash */
|
/* get the GUID and add to hash */
|
||||||
@ -407,11 +406,7 @@ fu_hwids_setup (FuHwids *self, FuSmbios *smbios, GError **error)
|
|||||||
g_hash_table_insert (self->hash_guid,
|
g_hash_table_insert (self->hash_guid,
|
||||||
g_strdup (guid),
|
g_strdup (guid),
|
||||||
GUINT_TO_POINTER (1));
|
GUINT_TO_POINTER (1));
|
||||||
g_ptr_array_add (self->array_guids, g_strdup (guid));
|
g_ptr_array_add (self->array_guids, g_steal_pointer (&guid));
|
||||||
|
|
||||||
/* show what makes up the GUID */
|
|
||||||
values = fu_hwids_get_replace_values (self, key, NULL);
|
|
||||||
g_debug ("{%s} <- %s", guid, values);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user