summaryrefslogtreecommitdiffstats
path: root/hw/pflash_cfi01.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2012-10-30 07:45:11 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-10-30 07:45:11 +0000
commitfc5b64d0829297c7a525ddf6c0bb08ef0a9af5b6 (patch)
treed09a8a0beaff3642a14218aad5c425e3f9560be0 /hw/pflash_cfi01.c
parent368a354f02b7c3845d8b4bcdebc0840a515e953b (diff)
downloadhqemu-fc5b64d0829297c7a525ddf6c0bb08ef0a9af5b6.zip
hqemu-fc5b64d0829297c7a525ddf6c0bb08ef0a9af5b6.tar.gz
pflash_cfi01: Fix debug mode printfery
This DPRINTF was throwing a warning due to a missing cast. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r--hw/pflash_cfi01.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c
index d30d43c..7d040b5 100644
--- a/hw/pflash_cfi01.c
+++ b/hw/pflash_cfi01.c
@@ -182,7 +182,8 @@ static uint32_t pflash_read (pflash_t *pfl, hwaddr offset,
DPRINTF("%s: Device ID Code %04x\n", __func__, ret);
break;
default:
- DPRINTF("%s: Read Device Information boff=%x\n", __func__, boff);
+ DPRINTF("%s: Read Device Information boff=%x\n", __func__,
+ (unsigned)boff);
ret = 0;
break;
}
OpenPOWER on IntegriCloud