aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2')
-rw-r--r--hardinfo2/arch/linux/common/inputdevices.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/hardinfo2/arch/linux/common/inputdevices.h b/hardinfo2/arch/linux/common/inputdevices.h
index 8b0b7595..e89e4b7e 100644
--- a/hardinfo2/arch/linux/common/inputdevices.h
+++ b/hardinfo2/arch/linux/common/inputdevices.h
@@ -115,10 +115,14 @@ __scan_input_devices(void)
}
strhash = h_strdup_cprintf("Product=0x%x\n"
- "Version=0x%x\n"
- "Connected to=%s\n",
- strhash, product, version, phys);
+ "Version=0x%x\n",
+ strhash, product, version);
+ if (phis[1] != 0) {
+ strhash = h_strdup_cprintf("Connected to=%s\n",
+ strhash, phys);
+ }
+
if (strstr(phys,"ir")) {
strhash = h_strdup_cprintf("InfraRed port=yes\n",
strhash);