From patchwork Fri Oct 26 05:47:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 194380 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 4793C2C00AC for ; Fri, 26 Oct 2012 17:31:17 +1100 (EST) Received: from localhost ([::1]:38739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRcn2-0004mk-OZ for incoming@patchwork.ozlabs.org; Fri, 26 Oct 2012 01:49:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRcmr-0004TF-Hj for qemu-devel@nongnu.org; Fri, 26 Oct 2012 01:48:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRcmq-00016e-7L for qemu-devel@nongnu.org; Fri, 26 Oct 2012 01:48:53 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:33400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRcmq-000123-1X for qemu-devel@nongnu.org; Fri, 26 Oct 2012 01:48:52 -0400 Received: by mail-pb0-f45.google.com with SMTP id rp2so2425801pbb.4 for ; Thu, 25 Oct 2012 22:48:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=k5JgZJdyrNIwgSrH6yMB+HRJTxHLM2OeMi8/kRQS+m8=; b=G5fpSvj3YImGnf5ub4omPA7u1mpmR475HAgVf526dTqQiBEAdq9P6YcMeVIfHMPeaN xSL1AWlnrZE9kxHegWGhvOFIRUoy0ycuMS503mKLytVH67XA/0zjy9cOKCQK4FJsDqUz LhFD0mHMRRTxH2lYWZki1W5gpo4Ku9epoataA+ul/thu2Szg5LP75evP1zHHO2EPDQPU z0H7k7KlylBeOU35FXAziiyN8FrCQfssmPEXbhXxltMd0zkG7VjpTuYI7EBOUHyr1tkz Z4hmbbJ/9EHF4UxpVXdCN3zBQxkAu6q5M+JNvdNPrK51IN7F2f3BLRVsH2stoGG5nP05 euxQ== Received: by 10.66.78.231 with SMTP id e7mr59208342pax.44.1351230531535; Thu, 25 Oct 2012 22:48:51 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id jx4sm623592pbc.27.2012.10.25.22.48.48 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 22:48:50 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Fri, 26 Oct 2012 15:47:49 +1000 Message-Id: <0b0bf909a37d722c95e996fa1464cc45dc6e0b2e.1351229557.git.peter.crosthwaite@xilinx.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlCUkfZde59pdh2/557Aw1IUAzjmWPK+4pGyXxucoTZaAmm4/TEQ2TLGGzvw4smrN5QOYS8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: vineshp@xilinx.com, peter.maydell@linaro.org, Peter Crosthwaite , john.williams@xilinx.com, kraxel@redhat.com, edgar.iglesias@gmail.com, afaerber@suse.de Subject: [Qemu-devel] [PATCH v2 09/11] 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 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 --- 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 4d5e476..7de3e54 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -38,7 +38,9 @@ #include "hw/sysbus.h" #include "exec-memory.h" +#ifndef EHCI_DEBUG #define EHCI_DEBUG 0 +#endif #if EHCI_DEBUG #define DPRINTF printf