]> git.proxmox.com Git - qemu.git/commitdiff
sd: Send debug printfery to stderr not stdout
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 15 Nov 2012 06:32:53 +0000 (16:32 +1000)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 7 Dec 2012 11:34:11 +0000 (12:34 +0100)
Some debug printfs for SD are coming up in stdout. Redirected them to stderr
instead.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/sd.c

diff --git a/hw/sd.c b/hw/sd.c
index 3c34d43ad44e79de688f63df9de514c70f2f01ff..607edba9c82440baf373d1fe025055e971c23dc7 100644 (file)
--- 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);
     }