From patchwork Tue Oct 30 11:28:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 195457 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7EF762C009B for ; Tue, 30 Oct 2012 22:39:34 +1100 (EST) Received: from localhost ([::1]:52747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTA0u-0003sL-Pa for incoming@patchwork.ozlabs.org; Tue, 30 Oct 2012 07:29:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTA08-0001UZ-4C for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:29:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTA00-0007Gn-V2 for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:28:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTA00-0007En-O1 for qemu-devel@nongnu.org; Tue, 30 Oct 2012 07:28:48 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9UBSmtj014022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Oct 2012 07:28:48 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q9UBSlcn012535; Tue, 30 Oct 2012 07:28:47 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 9181245FD1; Tue, 30 Oct 2012 12:28:43 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 30 Oct 2012 12:28:41 +0100 Message-Id: <1351596522-8142-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1351596522-8142-1-git-send-email-kraxel@redhat.com> References: <1351596522-8142-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: peter.crosthwaite@xilinx.com, Gerd Hoffmann Subject: [Qemu-devel] [RfC PATCH 4/5] usb/ehci: Guard definition of EHCI_DEBUG X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite Guard against re-definition of EHCI_DEBUG. Allows for turning on of debug info from configure (using --qemu-extra-cflags="-DEHCI_DEBUG=1") rather than source code hacking. Signed-off-by: Peter Crosthwaite Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-ehci.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 59580fc..d3168c9 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -36,7 +36,9 @@ #include "dma.h" #include "sysemu.h" +#ifndef EHCI_DEBUG #define EHCI_DEBUG 0 +#endif #if EHCI_DEBUG #define DPRINTF printf