diff options
| author | Alan Stern <[email protected]> | 2009-03-05 16:01:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2009-03-24 23:20:36 +0000 |
| commit | 7ea0a2bcfe40b1c525e63e931b7142ab22b64269 (patch) | |
| tree | 90f5853d6a4685a00baf895eafe1098bb8e19f3c /drivers/usb/host/uhci-debug.c | |
| parent | USB: TWL: disable VUSB regulators when cable unplugged (diff) | |
| download | kernel-7ea0a2bcfe40b1c525e63e931b7142ab22b64269.tar.gz kernel-7ea0a2bcfe40b1c525e63e931b7142ab22b64269.zip | |
USB: uhci: don't use pseudo negative values
The code in uhci-q.c doesn't have to use pseudo-negative values. I did
it that way because it was easy and because it would give the expected
output during debugging. But it doesn't have to work that way. Here's
another approach.
Signed-off-by: Alan Stern <[email protected]>
Cc: Roel Kluin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/host/uhci-debug.c')
| -rw-r--r-- | drivers/usb/host/uhci-debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/uhci-debug.c b/drivers/usb/host/uhci-debug.c index 20cc58b97807..e52b954dda47 100644 --- a/drivers/usb/host/uhci-debug.c +++ b/drivers/usb/host/uhci-debug.c @@ -118,7 +118,9 @@ static int uhci_show_urbp(struct urb_priv *urbp, char *buf, int len, int space) } out += sprintf(out, "%s%s", ptype, (urbp->fsbr ? " FSBR" : "")); - out += sprintf(out, " Actlen=%d", urbp->urb->actual_length); + out += sprintf(out, " Actlen=%d%s", urbp->urb->actual_length, + (urbp->qh->type == USB_ENDPOINT_XFER_CONTROL ? + "-8" : "")); if (urbp->urb->unlinked) out += sprintf(out, " Unlinked=%d", urbp->urb->unlinked); |
