summaryrefslogtreecommitdiffstats
path: root/hw/sd.c
diff options
context:
space:
mode:
authorPeter Crosthwaite2012-11-15 07:32:53 +0100
committerStefan Hajnoczi2012-12-07 12:34:11 +0100
commit038d3d44598232f5aad40d1c84c215f38a21576c (patch)
treeaa46d8de2d410ecdaa7e291855fcccb60cd7e371 /hw/sd.c
parenttarget-mips: Fix incorrect shift for SHILO and SHILOV (diff)
downloadqemu-038d3d44598232f5aad40d1c84c215f38a21576c.tar.gz
qemu-038d3d44598232f5aad40d1c84c215f38a21576c.tar.xz
qemu-038d3d44598232f5aad40d1c84c215f38a21576c.zip
sd: Send debug printfery to stderr not stdout
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>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 3c34d43ad4..607edba9c8 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);
}