From patchwork Thu Oct 25 09:47:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Crosthwaite X-Patchwork-Id: 194103 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 B6E782C00B0 for ; Thu, 25 Oct 2012 21:10:29 +1100 (EST) Received: from localhost ([::1]:58942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRKOR-0008SS-Mk for incoming@patchwork.ozlabs.org; Thu, 25 Oct 2012 06:10:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRK2t-00012T-O2 for qemu-devel@nongnu.org; Thu, 25 Oct 2012 05:48:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRK2n-0006Zz-6E for qemu-devel@nongnu.org; Thu, 25 Oct 2012 05:48:11 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:63632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRK2n-0006ZX-0I for qemu-devel@nongnu.org; Thu, 25 Oct 2012 05:48:05 -0400 Received: by mail-pa0-f45.google.com with SMTP id fb10so987415pad.4 for ; Thu, 25 Oct 2012 02:48:02 -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=dUvT71dYcU8Hk/GawSP4L6ZJKT+2KAf0l/fIjpE63K8=; b=XACuIhq1XVTEpkN3seADe9KF1OOdn3rdOV+Gsk946oOD7QgILWDNviC07zq92vq6uo g6ywIENYCN+AX1+2U01e7NUpc//n2xSI7iPik2Uy47XzvRraWwhYggfgJUQqA6uiBHET qY6icOQs0Xqt0evQDuOAkzaPtBX3qelhvbSibnIAv0CzU06yTRXCkQCrAoqtgK1cp+5d IfWAN4PlPGpjg7kjWgAROCePPSteerVx9j+E3aX72F2gJK9OvfHn3DzHh0BxjEDiNlbp T/mALx27Q3PB/AygiJaI618MI70kiuxN/9aiGkx4w5rz5oKjECilUXmt3YaD5ZM3gO3g i8fg== Received: by 10.68.143.162 with SMTP id sf2mr57855653pbb.137.1351158482135; Thu, 25 Oct 2012 02:48:02 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id jw14sm10960022pbb.36.2012.10.25.02.47.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 02:48:01 -0700 (PDT) From: Peter Crosthwaite To: qemu-devel@nongnu.org Date: Thu, 25 Oct 2012 19:47:17 +1000 Message-Id: <614a1d7157090deeea38a7970ef03242e47b0757.1351157627.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: ALoCoQmKcLgOfC7Bt/c3wXB1Bt1AOFCN4vDPynJGqtrYnnHjrUnWzxMgMPOuLAi+Lpb1CimHfGbb X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.45 Cc: vineshp@xilinx.com, peter.maydell@linaro.org, Peter Crosthwaite , john.williams@xilinx.com, kraxel@redhat.com, edgar.iglesias@gmail.com Subject: [Qemu-devel] [PATCH v1 6/8] 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 17482f7..394feca 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