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:
Richard Hughes 2018-11-14 10:53:06 +00:00
parent aabdc371c1
commit af2d1c285e

View File

@ -394,7 +394,6 @@ fu_hwids_setup (FuHwids *self, FuSmbios *smbios, GError **error)
for (guint i = 0; i < 15; i++) {
g_autofree gchar *guid = NULL;
g_autofree gchar *key = NULL;
g_autofree gchar *values = NULL;
g_autoptr(GError) error_local = NULL;
/* 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_strdup (guid),
GUINT_TO_POINTER (1));
g_ptr_array_add (self->array_guids, g_strdup (guid));
/* show what makes up the GUID */
values = fu_hwids_get_replace_values (self, key, NULL);
g_debug ("{%s} <- %s", guid, values);
g_ptr_array_add (self->array_guids, g_steal_pointer (&guid));
}
return TRUE;