Skip to content

Commit

Permalink
xilinx_timer: Fix a compile error if debug enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
crwulff authored and edgarigl committed Sep 19, 2012
1 parent c9b6e1f commit 8354cd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/xilinx_timer.c
Expand Up @@ -24,6 +24,7 @@

#include "sysbus.h"
#include "ptimer.h"
#include "qemu-log.h"

#define D(x)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8354cd7

Please sign in to comment.