From fc5b64d0829297c7a525ddf6c0bb08ef0a9af5b6 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Tue, 30 Oct 2012 07:45:11 +0000 Subject: [PATCH] pflash_cfi01: Fix debug mode printfery This DPRINTF was throwing a warning due to a missing cast. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/pflash_cfi01.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index d30d43c318..7d040b508a 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; }