aboutsummaryrefslogtreecommitdiff
path: root/hw/pflash_cfi01.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-03 23:09:08 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-03 23:09:08 +0000
commit06adb549e6ccaa01ec60702962de89444824b6ef (patch)
treea8cdf328741e5469e91a22202183fa201dcf41e9 /hw/pflash_cfi01.c
parent3656744cddce7937e54b78c5f9b5ba002d440105 (diff)
Improve pflash cfi01 debug messages (Thomas Petazzoni).
This patches slightly improves the debugging messages in pflash_read() and pflash_write(). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5410 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pflash_cfi01.c')
-rw-r--r--hw/pflash_cfi01.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c
index 93c172008c..356237c90b 100644
--- a/hw/pflash_cfi01.c
+++ b/hw/pflash_cfi01.c
@@ -111,8 +111,8 @@ static uint32_t pflash_read (pflash_t *pfl, target_ulong offset, int width)
else if (pfl->width == 4)
boff = boff >> 2;
- DPRINTF("%s: reading offset " TARGET_FMT_lx " under cmd %02x\n",
- __func__, boff, pfl->cmd);
+ DPRINTF("%s: reading offset " TARGET_FMT_lx " under cmd %02x width %d\n",
+ __func__, offset, pfl->cmd, width);
switch (pfl->cmd) {
case 0x00:
@@ -205,7 +205,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
cmd = value;
offset -= pfl->base;
- DPRINTF("%s: offset " TARGET_FMT_lx " %08x %d wcycle 0x%x\n",
+ DPRINTF("%s: writing offset " TARGET_FMT_lx " value %08x width %d wcycle 0x%x\n",
__func__, offset, value, width, pfl->wcycle);
/* Set the device in I/O access mode */