Skip to content

Commit

Permalink
sd: Send debug printfery to stderr not stdout
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pete128 authored and stefanhaRH committed Dec 7, 2012
1 parent 19e6c50 commit 038d3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/sd.c
Expand Up @@ -1439,8 +1439,8 @@ int sd_do_command(SDState *sd, SDRequest *req,
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);
}
Expand Down

0 comments on commit 038d3d4

Please sign in to comment.