[5410] Improve pflash cfi01 debug messages (Thomas Petazzoni).
Revision: 5410
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5410 Author: balrog Date: 2008-10-03 23:09:08 +0000 (Fri, 03 Oct 2008)
Log Message:
-----------
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 <[email protected]>
Modified Paths:
--------------
trunk/hw/pflash_cfi01.c
Modified: trunk/hw/pflash_cfi01.c
===================================================================
hw/pflash_cfi01.c +3 -3
@@ -111,8 +111,8 @@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 @@ 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 */