diff options
author | Max Reitz <max@tyndur.org> | 2010-03-14 12:19:03 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-31 11:16:52 -0500 |
commit | f3571b1a5b465ae4fb1f168fc1480a3cff780d83 (patch) | |
tree | b10e7fa0c8e173cf5553d22ce64f3febe309dc3c /hw/usb-ohci.c | |
parent | 1c47cb16517914144d5b29ac1a67f6d720e7e52e (diff) |
usb: class specific interface requests
Mass Storage Reset and Get Max LUN are class specific requests, but
they were not marked as such in hw/usb-msd.c, moved therefore
ClassInterfaceRequest and ClassInterfaceOutRequest from hw/usb-net.c
to hw/usb.h.
Furthermore there was a problem in hw/usb-ohci.c when using DEBUG
concerning systems where size_t is a 32 bit integer (printf resulted
in a segmentation fault).
Signed-off-by: Max Reitz <max@tyndur.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-ohci.c')
-rw-r--r-- | hw/usb-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index 93f7d79483..61ad6142c5 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -907,7 +907,7 @@ static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed) flag_r = (td.flags & OHCI_TD_R) != 0; #ifdef DEBUG_PACKET DPRINTF(" TD @ 0x%.8x %" PRId64 " bytes %s r=%d cbp=0x%.8x be=0x%.8x\n", - addr, len, str, flag_r, td.cbp, td.be); + addr, (int64_t)len, str, flag_r, td.cbp, td.be); if (len > 0 && dir != OHCI_TD_DIR_IN) { DPRINTF(" data:"); |