Changes the meaning of each characters '<' and '>' that it could be
confused with USB OUT or USB IN packets though it just represents USB submit or done. To know the USB packet direction, the endpoint address should be referred. Requested by: jkim
This commit is contained in:
parent
9bb4c87bb1
commit
723b2f5af2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216138
@ -247,7 +247,7 @@ print_apacket(const struct bpf_xhdr *hdr, struct usbpf_pkthdr *up,
|
||||
printf(" usbus%d.%d 0x%02x %s %s", up->up_busunit, up->up_address,
|
||||
up->up_endpoint,
|
||||
xfertype_table[up->up_xfertype],
|
||||
up->up_type == USBPF_XFERTAP_SUBMIT ? ">" : "<");
|
||||
up->up_type == USBPF_XFERTAP_SUBMIT ? "S" : "D");
|
||||
printf(" (%d/%d)", up->up_frames, up->up_length);
|
||||
if (up->up_type == USBPF_XFERTAP_DONE)
|
||||
printf(" %s", errstr_table[up->up_error]);
|
||||
|
Loading…
Reference in New Issue
Block a user