Commit 06adb549e6ccaa01ec60702962de89444824b6ef
1 parent
3656744c
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
Showing
1 changed file
with
3 additions
and
3 deletions
hw/pflash_cfi01.c
@@ -111,8 +111,8 @@ static uint32_t pflash_read (pflash_t *pfl, target_ulong offset, int width) | @@ -111,8 +111,8 @@ static uint32_t pflash_read (pflash_t *pfl, target_ulong offset, int width) | ||
111 | else if (pfl->width == 4) | 111 | else if (pfl->width == 4) |
112 | boff = boff >> 2; | 112 | boff = boff >> 2; |
113 | 113 | ||
114 | - DPRINTF("%s: reading offset " TARGET_FMT_lx " under cmd %02x\n", | ||
115 | - __func__, boff, pfl->cmd); | 114 | + DPRINTF("%s: reading offset " TARGET_FMT_lx " under cmd %02x width %d\n", |
115 | + __func__, offset, pfl->cmd, width); | ||
116 | 116 | ||
117 | switch (pfl->cmd) { | 117 | switch (pfl->cmd) { |
118 | case 0x00: | 118 | case 0x00: |
@@ -205,7 +205,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value, | @@ -205,7 +205,7 @@ static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value, | ||
205 | cmd = value; | 205 | cmd = value; |
206 | offset -= pfl->base; | 206 | offset -= pfl->base; |
207 | 207 | ||
208 | - DPRINTF("%s: offset " TARGET_FMT_lx " %08x %d wcycle 0x%x\n", | 208 | + DPRINTF("%s: writing offset " TARGET_FMT_lx " value %08x width %d wcycle 0x%x\n", |
209 | __func__, offset, value, width, pfl->wcycle); | 209 | __func__, offset, value, width, pfl->wcycle); |
210 | 210 | ||
211 | /* Set the device in I/O access mode */ | 211 | /* Set the device in I/O access mode */ |