From: Gerd Hoffmann Date: Mon, 21 Nov 2011 10:17:59 +0000 (+0100) Subject: usb-storage: move status debug message to usb_msd_send_status. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~2071^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fb306c4b83603a9c252eb4e21701d8cd5bc69c9;p=sdk%2Femulator%2Fqemu.git usb-storage: move status debug message to usb_msd_send_status. usb_msd_send_status can be called from different code paths, move the debug message into the function to make sure it is printed unconditionally. Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb-msd.c b/hw/usb-msd.c index b7341778e6..8dde421328 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -194,6 +194,8 @@ static void usb_msd_send_status(MSDState *s, USBPacket *p) struct usb_msd_csw csw; int len; + DPRINTF("Command status %d tag 0x%x, len %zd\n", + s->result, s->tag, p->iov.size); csw.sig = cpu_to_le32(0x53425355); csw.tag = cpu_to_le32(s->tag); csw.residue = s->residue; @@ -432,8 +434,6 @@ static int usb_msd_handle_data(USBDevice *dev, USBPacket *p) break; case USB_MSDM_CSW: - DPRINTF("Command status %d tag 0x%x, len %zd\n", - s->result, s->tag, p->iov.size); if (p->iov.size < 13) { goto fail; }