mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-13 17:23:20 +00:00
trivial: Include some useful DMI values in the report metadata
This commit is contained in:
parent
08bb9223ec
commit
a778ac9899
@ -1374,6 +1374,7 @@ fu_engine_get_report_metadata_os_release (GHashTable *hash, GError **error)
|
|||||||
GHashTable *
|
GHashTable *
|
||||||
fu_engine_get_report_metadata (FuEngine *self, GError **error)
|
fu_engine_get_report_metadata (FuEngine *self, GError **error)
|
||||||
{
|
{
|
||||||
|
const gchar *tmp;
|
||||||
gchar *btime;
|
gchar *btime;
|
||||||
#ifdef HAVE_UTSNAME_H
|
#ifdef HAVE_UTSNAME_H
|
||||||
struct utsname name_tmp;
|
struct utsname name_tmp;
|
||||||
@ -1401,6 +1402,20 @@ fu_engine_get_report_metadata (FuEngine *self, GError **error)
|
|||||||
if (!fu_engine_get_report_metadata_os_release (hash, error))
|
if (!fu_engine_get_report_metadata_os_release (hash, error))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
/* DMI data */
|
||||||
|
tmp = fu_hwids_get_value (self->hwids, FU_HWIDS_KEY_PRODUCT_NAME);
|
||||||
|
if (tmp != NULL)
|
||||||
|
g_hash_table_insert (hash, g_strdup ("HostProduct"), g_strdup (tmp));
|
||||||
|
tmp = fu_hwids_get_value (self->hwids, FU_HWIDS_KEY_FAMILY);
|
||||||
|
if (tmp != NULL)
|
||||||
|
g_hash_table_insert (hash, g_strdup ("HostFamily"), g_strdup (tmp));
|
||||||
|
tmp = fu_hwids_get_value (self->hwids, FU_HWIDS_KEY_PRODUCT_SKU);
|
||||||
|
if (tmp != NULL)
|
||||||
|
g_hash_table_insert (hash, g_strdup ("HostSku"), g_strdup (tmp));
|
||||||
|
tmp = fu_hwids_get_value (self->hwids, FU_HWIDS_KEY_MANUFACTURER);
|
||||||
|
if (tmp != NULL)
|
||||||
|
g_hash_table_insert (hash, g_strdup ("HostVendor"), g_strdup (tmp));
|
||||||
|
|
||||||
/* kernel version is often important for debugging failures */
|
/* kernel version is often important for debugging failures */
|
||||||
#ifdef HAVE_UTSNAME_H
|
#ifdef HAVE_UTSNAME_H
|
||||||
memset (&name_tmp, 0, sizeof (struct utsname));
|
memset (&name_tmp, 0, sizeof (struct utsname));
|
||||||
|
Loading…
Reference in New Issue
Block a user