[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 6/6] xilinx_timer: Fix a compile error if debug e
From: |
Peter A. G. Crosthwaite |
Subject: |
[Qemu-devel] [PATCH v1 6/6] xilinx_timer: Fix a compile error if debug enabled |
Date: |
Mon, 17 Sep 2012 18:47:36 +1000 |
From: Chris Wulff <address@hidden>
There was a missing include of qemu-log and a variable name in a printf was out
of date.
Signed-off-by: Chris Wulff <address@hidden>
Signed-off-by: Peter A. G. Crosthwaite <address@hidden>
---
hw/xilinx_timer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c
index 9eb5ef7..2e48ca2 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)
--
1.7.0.4
- [Qemu-devel] [PATCH v1 0/6] Microblaze Patches, Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 1/6] xilinx_timer: Removed comma in device name, Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 3/6] xilinx_timer: Fixed "frequency" prop name, Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 2/6] xilinx_timer: Send dbg msgs to stderr not stdout, Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 4/6] xilinx.h: Error check when setting links, Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 5/6] xilinx: fix names of ethernet and dma links., Peter A. G. Crosthwaite, 2012/09/17
- [Qemu-devel] [PATCH v1 6/6] xilinx_timer: Fix a compile error if debug enabled,
Peter A. G. Crosthwaite <=
- Re: [Qemu-devel] [PATCH v1 0/6] Microblaze Patches, Edgar E. Iglesias, 2012/09/19