From patchwork Fri Nov 16 14:08:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] sd: Send debug printfery to stderr not stdout Date: Fri, 16 Nov 2012 04:08:15 -0000 From: Stefan Hajnoczi X-Patchwork-Id: 199626 Message-Id: <1353074895-3712-3-git-send-email-stefanha@redhat.com> To: Cc: 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); }