Received: from eggs.gnu.org ([208.118.235.92]:48110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufi33-0007LX-8G for qemu-devel@nongnu.org; Thu, 23 May 2013 22:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufi2w-0007dj-DU for qemu-devel@nongnu.org; Thu, 23 May 2013 22:48:05 -0400 From: liguang Date: Fri, 24 May 2013 10:47:34 +0800 Message-Id: <1369363654-7063-5-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: <1369363654-7063-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1369363654-7063-1-git-send-email-lig.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 4/4] debugcon: use fprintf(stderr...) instead of printf List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Cc: Paolo Bonzini , Anthony Liguori , Gerd Hoffmann , liguang , =?UTF-8?q?Andreas=20F=C3=A4rber?= suggested by Andreas F=C3=A4rber Signed-off-by: liguang --- hw/char/debugcon.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index 3b0637d..be20ede 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -55,7 +55,8 @@ static void debugcon=5Fioport=5Fwrite(void *opaque, hwadd= r addr, uint64=5Ft val, unsigned char ch =3D val; =20 #ifdef DEBUG=5FDEBUGCON - printf(" [debugcon: write addr=3D0x%04" HWADDR=5FPRIx " val=3D0x%02" P= RIx64 "]\n", addr, val); + fprintf(stderr, " [debugcon: write addr=3D0x%04" HWADDR=5FPRIx + " val=3D0x%02" PRIx64 "]\n", addr, val); #endif =20 qemu=5Fchr=5Ffe=5Fwrite(s->chr, &ch, 1); @@ -67,7 +68,7 @@ static uint64=5Ft debugcon=5Fioport=5Fread(void *opaque, = hwaddr addr, unsigned width) DebugconState *s =3D opaque; =20 #ifdef DEBUG=5FDEBUGCON - printf("debugcon: read addr=3D0x%04" HWADDR=5FPRIx "\n", addr); + fprintf(stderr, "debugcon: read addr=3D0x%04" HWADDR=5FPRIx "\n", addr= ); #endif =20 return s->readback; --=20 1.7.2.5 =