aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/inputdevices.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-12 08:28:36 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-07-12 08:31:18 -0700
commit512535ff97694c4cf0a824a2a2c357b0b90a1353 (patch)
tree80d5b52df7662e5c68d5ae1faeb04f4d6c997cef /modules/devices/inputdevices.c
parent0ad42047da7b8a11a07e73a75f9f415362eec867 (diff)
Show links for vendors
Diffstat (limited to 'modules/devices/inputdevices.c')
-rw-r--r--modules/devices/inputdevices.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/devices/inputdevices.c b/modules/devices/inputdevices.c
index cf1728a9..f3bacf5e 100644
--- a/modules/devices/inputdevices.c
+++ b/modules/devices/inputdevices.c
@@ -95,13 +95,7 @@ __scan_input_devices(void)
tmp, name,
input_devices[d].icon);
- const gchar *v_url = (gchar*)vendor_get_url(name);
- const gchar *v_name = (gchar*)vendor_get_name(name);
- gchar *v_str = NULL;
- if (v_url != NULL)
- v_str = g_strdup_printf("[0x%x] %s (%s)", vendor, v_name, v_url);
- else
- v_str = g_strdup_printf("0x%x", vendor);
+ gchar *v_str = vendor_get_link(name);
v_str = hardinfo_clean_value(v_str, 1);
name = hardinfo_clean_value(name, 1);
@@ -109,14 +103,14 @@ __scan_input_devices(void)
/* Name */ "%s=%s\n"
/* Type */ "%s=%s\n"
/* Bus */ "%s=0x%x\n"
- /* Vendor */ "%s=%s\n"
+ /* Vendor */ "%s=[0x%x] %s\n"
/* Product */"%s=0x%x\n"
/* Version */"%s=0x%x\n",
_("Device Information"),
_("Name"), name,
_("Type"), input_devices[d].name,
_("Bus"), bus,
- _("Vendor"), v_str,
+ _("Vendor"), vendor, v_str,
_("Product"), product,
_("Version"), version );
@@ -130,9 +124,9 @@ __scan_input_devices(void)
moreinfo_add_with_prefix("DEV", tmp, strhash);
g_free(tmp);
- g_free(v_str);
g_free(phys);
g_free(name);
+ g_free(v_str);
}
}