aboutsummaryrefslogtreecommitdiff
path: root/hw/zynq_slcr.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2012-12-04 16:04:35 +1000
committerStefan Hajnoczi <stefanha@redhat.com>2012-12-18 16:49:51 +0100
commit8f6038009662b481fbd1e43cd69af80aa10a8223 (patch)
treeeefbf411bcbe515ef75ec3365333a2230266cb71 /hw/zynq_slcr.c
parentec9ea4890cd06de1648cbbfb99fcb63e01f4000f (diff)
zynq_slcr: Compile time warning fixes.
Few warnings when compiled with debug printfs enabled. Fixed all. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/zynq_slcr.c')
-rw-r--r--hw/zynq_slcr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/zynq_slcr.c b/hw/zynq_slcr.c
index dde4306195..f55ab8d8a9 100644
--- a/hw/zynq_slcr.c
+++ b/hw/zynq_slcr.c
@@ -334,7 +334,7 @@ static uint64_t zynq_slcr_read(void *opaque, hwaddr offset,
{
uint32_t ret = zynq_slcr_read_imp(opaque, offset);
- DB_PRINT("addr: %08x data: %08x\n", offset, ret);
+ DB_PRINT("addr: %08x data: %08x\n", (unsigned)offset, (unsigned)ret);
return ret;
}
@@ -343,7 +343,7 @@ static void zynq_slcr_write(void *opaque, hwaddr offset,
{
ZynqSLCRState *s = (ZynqSLCRState *)opaque;
- DB_PRINT("offset: %08x data: %08x\n", offset, (unsigned)val);
+ DB_PRINT("offset: %08x data: %08x\n", (unsigned)offset, (unsigned)val);
switch (offset) {
case 0x00: /* SCL */
@@ -476,7 +476,8 @@ static void zynq_slcr_write(void *opaque, hwaddr offset,
break;
default:
bad_reg:
- DB_PRINT("Bad register write %x <= %08x\n", (int)offset, val);
+ DB_PRINT("Bad register write %x <= %08x\n", (int)offset,
+ (unsigned)val);
}
} else {
DB_PRINT("SCLR registers are locked. Unlock them first\n");