From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA0Og-000307-17 for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:50:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA0OI-0003aD-1W for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:50:49 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:63504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA0OH-0003a0-QU for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:50:25 -0400 Received: by obbwd20 with SMTP id wd20so60141obb.4 for ; Tue, 20 Mar 2012 07:50:24 -0700 (PDT) From: Liming Wang Date: Tue, 20 Mar 2012 22:48:58 +0800 Message-Id: <1332254938-31023-2-git-send-email-walimisdev@gmail.com> In-Reply-To: <1332254938-31023-1-git-send-email-walimisdev@gmail.com> References: <1332254938-31023-1-git-send-email-walimisdev@gmail.com> Subject: [Qemu-devel] [PATCH 2/2] hw/pflash_cfi01: change print method to avoid complaint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori Linux guest os often writes invalid cmd data to reset into read mode, which leads many qemu complaint. Here we place all the debug message into macro PFLASH_DEBUG. We can turn on the all debug info by define PFLASH_DEBUG if we want to debug pflash_cfi01. Signed-off-by: Liming Wang --- hw/pflash_cfi01.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pflash_cfi01.c b/hw/pflash_cfi01.c index 2e6fa71..4e39ea6 100644 --- a/hw/pflash_cfi01.c +++ b/hw/pflash_cfi01.c @@ -433,7 +433,7 @@ static void pflash_write(pflash_t *pfl, target_phys_addr_t offset, return; error_flash: - printf("%s: Unimplemented flash cmd sequence " + DPRINTF("%s: Unimplemented flash cmd sequence " "(offset " TARGET_FMT_plx ", wcycle 0x%x cmd 0x%x value 0x%x)\n", __func__, offset, pfl->wcycle, pfl->cmd, value); -- 1.7.0.4