summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-12-03 00:44:07 +0000
committerweongyo <weongyo@FreeBSD.org>2010-12-03 00:44:07 +0000
commitf7b9a54cd7b1555f6f80b4ca0b1bb00383da384c (patch)
tree80580e13f9ed984daa9c0bc001fb33816ccd449d
parentc282b1e643737544893794ba6246efd065e2076e (diff)
downloadFreeBSD-src-f7b9a54cd7b1555f6f80b4ca0b1bb00383da384c.zip
FreeBSD-src-f7b9a54cd7b1555f6f80b4ca0b1bb00383da384c.tar.gz
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
-rw-r--r--usr.sbin/usbdump/usbdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/usbdump/usbdump.c b/usr.sbin/usbdump/usbdump.c
index 93e9f21..c6f9048 100644
--- a/usr.sbin/usbdump/usbdump.c
+++ b/usr.sbin/usbdump/usbdump.c
@@ -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]);
OpenPOWER on IntegriCloud