From patchwork Mon Sep 10 00:20:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: crwulff@gmail.com X-Patchwork-Id: 182761 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 7BAD42C0086 for ; Mon, 10 Sep 2012 10:28:14 +1000 (EST) Received: from localhost ([::1]:41375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TArli-0008UO-FW for incoming@patchwork.ozlabs.org; Sun, 09 Sep 2012 20:22:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TArj9-0006Hv-Nx for qemu-devel@nongnu.org; Sun, 09 Sep 2012 20:19:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TArj8-00020z-2I for qemu-devel@nongnu.org; Sun, 09 Sep 2012 20:19:47 -0400 Received: from mail-vc0-f173.google.com ([209.85.220.173]:58133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TArj7-0001zH-UJ for qemu-devel@nongnu.org; Sun, 09 Sep 2012 20:19:45 -0400 Received: by mail-vc0-f173.google.com with SMTP id fy7so615989vcb.4 for ; Sun, 09 Sep 2012 17:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=CpZ4mb9aRGel8W5WDZmycPNAP1zMdDq/9w+l4OU4Pdw=; b=lH/jDgIMLkwsWaIGqGxLYlt5eTzRNcOfOVV8KbdjDXA245nBiHosjvxegAC+ModHOR 5RJ+TyNmcoe3fMFBEamrcgO/DKoXD/9CqOS7wh7U5ic60NRli/EmVztYgAGNT9Kordli 8FN7EoiSyL4bhj3VjC7uwri3l4UylhWYZUy4yl8aACU3j5Q3j/hgbCTBf4afoBrO7xTa Ik198xTUo14yzwwxyMK/7B3LWcK01OwbbKys28j29TMLXPL2IjAO2XRJmabSMqzB//kg f4NcTxEuXQoX6uozzxD70NziwB7BEXtCVEFoyz9FPljUXh3ZY2ysYs8SRCzHZAbtZzx+ 73Dg== Received: by 10.52.67.144 with SMTP id n16mr13816222vdt.13.1347236385746; Sun, 09 Sep 2012 17:19:45 -0700 (PDT) Received: from localhost.localdomain (cpe-67-244-159-59.rochester.res.rr.com. [67.244.159.59]) by mx.google.com with ESMTPS id l8sm7515390veu.6.2012.09.09.17.19.44 (version=SSLv3 cipher=OTHER); Sun, 09 Sep 2012 17:19:44 -0700 (PDT) From: crwulff@gmail.com To: qemu-devel@nongnu.org Date: Sun, 9 Sep 2012 20:20:07 -0400 Message-Id: <1347236407-10465-10-git-send-email-crwulff@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347236407-10465-1-git-send-email-crwulff@gmail.com> References: <1347236407-10465-1-git-send-email-crwulff@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.173 X-Mailman-Approved-At: Sun, 09 Sep 2012 20:21:39 -0400 Cc: Chris Wulff Subject: [Qemu-devel] [PATCH 9/9] xilinx_timer: Fix a compile error if debug messages are enabled. 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: Chris Wulff Signed-off-by: Chris Wulff Reviewed-by: Peter Crosthwaite --- hw/xilinx_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index b562bd0..18f354b 100644 --- a/hw/xilinx_timer.c +++ b/hw/xilinx_timer.c @@ -24,6 +24,7 @@ #include "sysbus.h" #include "ptimer.h" +#include "qemu-log.h" #define D(x) @@ -189,7 +190,7 @@ static void timer_hit(void *opaque) { struct xlx_timer *xt = opaque; struct timerblock *t = xt->parent; - D(printf("%s %d\n", __func__, timer)); + D(printf("%s %d\n", __func__, xt->nr)); xt->regs[R_TCSR] |= TCSR_TINT; if (xt->regs[R_TCSR] & TCSR_ARHT)