From patchwork Fri Dec 7 11:39:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [01/13] sd: Send debug printfery to stderr not stdout Date: Fri, 07 Dec 2012 01:39:00 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 204473 Message-Id: <1354880352-9597-2-git-send-email-stefanha@redhat.com> To: Cc: Anthony Liguori , Peter Crosthwaite , Stefan Hajnoczi From: Peter Crosthwaite Some debug printfs for SD are coming up in stdout. Redirected them to stderr instead. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- hw/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/sd.c b/hw/sd.c index 3c34d43..607edba 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -1439,8 +1439,8 @@ send_response: int i; DPRINTF("Response:"); for (i = 0; i < rsplen; i++) - printf(" %02x", response[i]); - printf(" state %d\n", sd->state); + fprintf(stderr, " %02x", response[i]); + fprintf(stderr, " state %d\n", sd->state); } else { DPRINTF("No response %d\n", sd->state); }