From: Chris Wulff Date: Mon, 10 Sep 2012 00:20:07 +0000 (-0400) Subject: xilinx_timer: Fix a compile error if debug enabled X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8354cd722e0afae63bee3e4cb21c8f0ddb6874c2;p=qmiga%2Fqemu.git xilinx_timer: Fix a compile error if debug enabled There was a missing include of qemu-log and a variable name in a printf was out of date. Signed-off-by: Chris Wulff Signed-off-by: Peter A. G. Crosthwaite --- diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index 9eb5ef7114..2e48ca2bee 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(fprintf(stderr, "%s %d\n", __func__, timer)); + D(fprintf(stderr, "%s %d\n", __func__, xt->nr)); xt->regs[R_TCSR] |= TCSR_TINT; if (xt->regs[R_TCSR] & TCSR_ARHT)