Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlNpY-00005E-Hx for qemu-devel@nongnu.org; Thu, 02 Oct 2008 09:02:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlNpX-0008V6-Bq for qemu-devel@nongnu.org; Thu, 02 Oct 2008 09:02:55 -0400 Received: from [199.232.76.173] (port=48080 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlNpX-0008Us-4x for qemu-devel@nongnu.org; Thu, 02 Oct 2008 09:02:55 -0400 Received: from mail.free-electrons.com ([88.191.76.200]:38771) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KlNpW-0003NS-Ak for qemu-devel@nongnu.org; Thu, 02 Oct 2008 09:02:54 -0400 Message-Id: <20081002130239.545819607@free-electrons.com> References: <20081002130214.299833919@free-electrons.com> Date: Thu, 02 Oct 2008 15:02:17 +0200 From: Thomas Petazzoni Content-Disposition: inline; filename=pflash-cfi01-improve-debug-msgs Subject: [Qemu-devel] [patch 3/4] Improve pflash cfi01 debug messages Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Thomas Petazzoni , michael@free-electrons.com This patches slightly improves the debugging messages in pflash_read() and pflash_write(). Signed-off-by: Thomas Petazzoni --- hw/pflash_cfi01.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: qemu/hw/pflash_cfi01.c =================================================================== --- qemu.orig/hw/pflash_cfi01.c +++ qemu/hw/pflash_cfi01.c @@ -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 */ -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com