Patchwork [v3,4/4] pflash_cfi01: Fix debug mode printfery

login
register
mail settings
Submitter Peter Crosthwaite
Date Oct. 26, 2012, 6:10 a.m.
Message ID <7f011a84c5f76d90e8b292534bca9553ef77a467.1351231433.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/194375/
State New
Headers show

Comments

Peter Crosthwaite - Oct. 26, 2012, 6:10 a.m.
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>
---

 hw/pflash_cfi01.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

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;
         }