aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/openocd.texi4
-rw-r--r--src/jtag/adapter.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 4fb7b00b..535fe3a8 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -2370,8 +2370,8 @@ Returns the name of the debug adapter driver being used.
@end deffn
@anchor{adapter_usb_location}
-@deffn Command {adapter usb location} <bus>-<port>[.<port>]...
-Specifies the physical USB port of the adapter to use. The path
+@deffn Command {adapter usb location} [<bus>-<port>[.<port>]...]
+Displays or specifies the physical USB port of the adapter to use. The path
roots at @var{bus} and walks down the physical ports, with each
@var{port} option specifying a deeper level in the bus topology, the last
@var{port} denoting where the target adapter is actually plugged.
diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c
index 0a887ef2..e11f4e90 100644
--- a/src/jtag/adapter.c
+++ b/src/jtag/adapter.c
@@ -476,8 +476,8 @@ static const struct command_registration adapter_usb_command_handlers[] = {
.name = "location",
.handler = &handle_usb_location_command,
.mode = COMMAND_CONFIG,
- .help = "set the USB bus location of the USB device",
- .usage = "<bus>-port[.port]...",
+ .help = "display or set the USB bus location of the USB device",
+ .usage = "[<bus>-port[.port]...]",
},
#endif /* HAVE_LIBUSB_GET_PORT_NUMBERS */
COMMAND_REGISTRATION_DONE