summaryrefslogtreecommitdiff
path: root/hw/ppc/spapr.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-12-23 22:22:16 +0000
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:28 +0100
commit2f285bdd54bb2ff25a213b3b77e9bf46f4306320 (patch)
tree79c18d02e34baf0ed8c5c773fae82f656f80a0b4 /hw/ppc/spapr.c
parent466976d9eed8d618aed93cb1fac04845e86253cf (diff)
downloadqemu-2f285bdd54bb2ff25a213b3b77e9bf46f4306320.tar.gz
qemu-2f285bdd54bb2ff25a213b3b77e9bf46f4306320.tar.bz2
qemu-2f285bdd54bb2ff25a213b3b77e9bf46f4306320.zip
target-ppc: Cast ssize_t to size_t before printing with %zx
The mingw32 compiler complains about trying to print variables of type ssize_t with the %z format string specifier. Since we're printing it as unsigned hex anyway, cast to size_t to silence the warning. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/spapr.c')
-rw-r--r--hw/ppc/spapr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 720aab5624..2850624942 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -1482,7 +1482,7 @@ static void ppc_spapr_init(MachineState *machine)
}
if (spapr->rtas_size > RTAS_MAX_SIZE) {
hw_error("RTAS too big ! 0x%zx bytes (max is 0x%x)\n",
- spapr->rtas_size, RTAS_MAX_SIZE);
+ (size_t)spapr->rtas_size, RTAS_MAX_SIZE);
exit(1);
}
g_free(filename);