41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From 4a677f085bb7b594287f9b7d598bba6c6c341fab Mon Sep 17 00:00:00 2001
|
|
From: Dingyan Li <18500469033@163.com>
|
|
Date: Sat, 11 Mar 2023 22:02:06 +0800
|
|
Subject: [PATCH] Fix misalignments in hid device descripptor.
|
|
|
|
Extra spaces should be added when printing below lines:
|
|
'Report Descriptors:
|
|
** UNAVAILABLE **'
|
|
|
|
Signed-off-by: Dingyan Li <18500469033@163.com>
|
|
---
|
|
lsusb.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/lsusb.c b/lsusb.c
|
|
index 46c9b49..4aba88c 100644
|
|
--- a/lsusb.c
|
|
+++ b/lsusb.c
|
|
@@ -2463,8 +2463,8 @@ static void dump_hid_device(libusb_device_handle *dev,
|
|
return;
|
|
|
|
if (!dev) {
|
|
- printf(" Report Descriptors: \n"
|
|
- " ** UNAVAILABLE **\n");
|
|
+ printf(" Report Descriptors: \n"
|
|
+ " ** UNAVAILABLE **\n");
|
|
return;
|
|
}
|
|
|
|
@@ -2503,8 +2503,8 @@ static void dump_hid_device(libusb_device_handle *dev,
|
|
/* recent Linuxes require claim() for RECIP_INTERFACE,
|
|
* so "rmmod hid" will often make these available.
|
|
*/
|
|
- printf(" Report Descriptors: \n"
|
|
- " ** UNAVAILABLE **\n");
|
|
+ printf(" Report Descriptors: \n"
|
|
+ " ** UNAVAILABLE **\n");
|
|
}
|
|
}
|
|
}
|