Page MenuHomeFreeBSD

D56906.diff
No OneTemporary

D56906.diff

Index: usr.sbin/usbdump/usbdump.8
===================================================================
--- usr.sbin/usbdump/usbdump.8
+++ usr.sbin/usbdump/usbdump.8
@@ -128,11 +128,12 @@
.Pp
.Dl "usbdump -r /tmp/dump_pkts -v"
.Sh OUTPUT FORMAT
-The output format of
+The default output format of
.Nm
is as follows:
.Pp
-.Dl "<time> <bus>.<addr> <ep> <xfertype> <S/D> (<frames>/<length>) <...>"
+.Dl <time> <bus>.<addr> <type>-<xfertype>-EP-<endoint>,\\\
+SPD=<speed>,NFR=<frames>,SLEN=<len>,IVAL=<interval> [,<ERR=errnum>]
.Pp
The meaning of the output format elements is as follows:
.Bl -tag -width "<xfertype>"
@@ -144,38 +145,51 @@
The USB host controller's bus unit number.
.It <addr>
The unique number of the USB device as allocated by the host controller driver.
-.It <ep>
-The USB endpoint address that indicates whether the address is
-.Dv OUT
-or
-.Dv IN .
+.It <type>
+`SUBM' indicates a USB submit.
+`DONE' indicates a USB transfer done.
.It <xfertype>
The USB transfer type.
Can be
.Dv CTRL ,
.Dv ISOC ,
-.Dv BULK
+.Dv BULK ,
or
.Dv INTR .
-.It <S/D>
-`S' indicates a USB submit.
-`D' indicates a USB transfer done.
+.It <endpoint>
+The USB endpoint number or stream ID.
+.It <speed>
+The USB transfer speed.
+Can be
+.Dv FULL ,
+.Dv HIGH ,
+.Dv LOW ,
+.Dv VARI ,
+.Dv SUPER ,
+or
+.Dv UNKNOWN .
.It <frames>
-Numbers of frames in this packets.
+Number of frames in this packet.
If this is a USB submit, its value is
.Li xfer->nframes
which means how many frames are acceptable or registered to transfer.
If this is a USB done,
.Li xfer->aframes
is the actual number of frames.
-.It <length>
+.It <len>
Total packet size.
If this is a USB submit, its value is
.Li xfer->sumlen .
If this is a USB done, its value is
.Li xfer->actlen .
-.It <...>
+.It <interval>
+Transfer interval for interrupt and iscoronous use, in milliseconds.
+Its value is
+.Li up->up_interval .
+.It <,ERR=errnum>
Optional field used for printing an error string if the packet is from USB done.
+Error numbers and descriptions can be found in include file
+.In dev/usb/usbdi.h .
.El
.Sh SEE ALSO
.Xr usbconfig 8

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 27, 3:32 AM (4 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37347673
Default Alt Text
D56906.diff (2 KB)

Event Timeline