Skip to content

Commit 3e11e99

Browse files
committed
usbreset: fix swapped vendor and product ID in help/manpage
usbreset help and manpage describe the reset by product and vendor IDs as PPPP:VVVV, a completly non-standard way to identify USB devices. In practice, the value is correctly parsed in the standard USB format, which is vendor ID followed by product ID (VVVV:PPPP). This patch corrects both help message and manpage to reflect the correct format. It also changes text to mention vendor before product to prevent further confusion. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent 1bc473c commit 3e11e99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

man/usbreset.1

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ is a utility that performs resets on USB devices. It is particularly useful
1616
situations where a USB device is unresponsive or exhibits erratic behavior.
1717
The USB \fIdevice\fP to be reset can be specified in one of three formats:
1818
.TP
19-
.BR PPPP:VVVV
20-
Reset by product and vendor IDs
19+
.BR VVVV:PPPP
20+
Reset by vendor and product IDs
2121
.TP
2222
.BR BBB/DDD
2323
Reset by bus and device number
@@ -31,7 +31,7 @@ Reset by product name
3131
When run without any arguments,
3232
.B usbreset
3333
provides usage information and a list of connected USB devices, including their
34-
product and vendor IDs, bus and device numbers, and product names.
34+
vendor and product IDs, bus and device numbers, and product names.
3535

3636
.SH RETURN VALUE
3737
If the specified device is not found, a non-zero exit code is returned.

usbreset.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int main(int argc, char **argv)
193193
dev = find_device(NULL, NULL, NULL, NULL, NULL, argv[1]);
194194
else {
195195
printf("Usage:\n"
196-
" usbreset PPPP:VVVV - reset by product and vendor id\n"
196+
" usbreset VVVV:PPPP - reset by vendor and product id\n"
197197
" usbreset BBB/DDD - reset by bus and device number\n"
198198
" usbreset SN:SERIAL - reset by serial number\n"
199199
" usbreset \"Product\" - reset by product name\n\n"

0 commit comments

Comments
 (0)