Skip to content

Commit

Permalink
zynq_slcr: Compile time warning fixes.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pete128 authored and stefanhaRH committed Dec 18, 2012
1 parent ec9ea48 commit 8f60380
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hw/zynq_slcr.c
Expand Up @@ -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;
}

Expand All @@ -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 */
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 8f60380

Please sign in to comment.