aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wulff <crwulff@gmail.com>2012-09-09 20:20:07 -0400
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2012-09-19 18:48:09 +0200
commit8354cd722e0afae63bee3e4cb21c8f0ddb6874c2 (patch)
treefd63a2a85733628709a8af59502e473bc2e98efa
parentc9b6e1f6bbc93cd1a43dbde625077dde5806c7d7 (diff)
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 <crwulff@gmail.com> Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
-rw-r--r--hw/xilinx_timer.c3
1 files changed, 2 insertions, 1 deletions
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)