From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWNCe-0005kp-BY for qemu-devel@nongnu.org; Tue, 23 Sep 2014 06:20:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWNCV-0005FM-2k for qemu-devel@nongnu.org; Tue, 23 Sep 2014 06:20:12 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:54999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWNCU-00055S-Dj for qemu-devel@nongnu.org; Tue, 23 Sep 2014 06:20:03 -0400 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Sep 2014 20:19:48 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 3DB0E2CE8040 for ; Tue, 23 Sep 2014 20:19:46 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s8N9ta899175474 for ; Tue, 23 Sep 2014 19:55:39 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s8NAJh0R012006 for ; Tue, 23 Sep 2014 20:19:43 +1000 From: Alexey Kardashevskiy Date: Tue, 23 Sep 2014 20:19:41 +1000 Message-Id: <1411467581-2982-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] ohci: Fix compile errors without --enable-trace-backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Gerd Hoffmann This adds a stub for ohci_td_pkt() function (which traces packets) when configured without --enable-trace-backend Signed-off-by: Alexey Kardashevskiy --- It should probably be squashed to [PATCH] ohci: Convert fprint/DPRINTF/print to traces Sorry about that... --- hw/usb/hcd-ohci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 4a4dd02..7ea871d 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -920,6 +920,7 @@ static int ohci_service_iso_td(OHCIState *ohci, struct ohci_ed *ed, return 1; } +#ifdef trace_event_get_state static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len) { bool print16 = !!trace_event_get_state(TRACE_USB_OHCI_TD_PKT_SHORT); @@ -950,6 +951,11 @@ static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len) p += sprintf(p, " %.2x", buf[i]); } } +#else +static void ohci_td_pkt(const char *msg, const uint8_t *buf, size_t len) +{ +} +#endif /* Service a transport descriptor. Returns nonzero to terminate processing of this endpoint. */ -- 2.0.0