提交 b9b09422 编写于 作者: P Pete Zaitcev 提交者: Greg Kroah-Hartman

[PATCH] USB: Let usbmon collect less garbage

Alan Stern pointed out that (in 2.6 kernel) one successful submission results
in one callback, even for ISO-out transfers. Thus, the silly check can be
removed from usbmon. This reduces the amount of garbage printed in case
of ISO and Interrupt transfers.
Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 687f5f34
...@@ -97,19 +97,12 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb, ...@@ -97,19 +97,12 @@ static inline char mon_text_get_data(struct mon_event_text *ep, struct urb *urb,
if (len >= DATA_MAX) if (len >= DATA_MAX)
len = DATA_MAX; len = DATA_MAX;
/* if (usb_pipein(pipe)) {
* Bulk is easy to shortcut reliably. if (ev_type == 'S')
* XXX Other pipe types need consideration. Currently, we overdo it return '<';
* and collect garbage for them: better more than less. } else {
*/ if (ev_type == 'C')
if (usb_pipebulk(pipe) || usb_pipecontrol(pipe)) { return '>';
if (usb_pipein(pipe)) {
if (ev_type == 'S')
return '<';
} else {
if (ev_type == 'C')
return '>';
}
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册