sd: Send debug printfery to stderr not stdout
PATCH 1/1 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 <[email protected]>
--- hw/sd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
hw/sd.c +2 -2
@@ -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); }
Signature · 1 line
1.7.0.4
Quoted 4 lines · Peter Crosthwaite
Some debug printfs for SD are coming up in stdout. Redirected them to stderr instead.
Signed-off-by Peter Crosthwaite <[email protected]>
Reviewed-by Peter Maydell <[email protected]>
(the patched section is inside an #ifdef DEBUG_SD guard, so it's ok to be doing fprintf()s here.)
-- PMM
Stefan Hajnoczi
AppliedQuoted 7 lines · Peter Crosthwaite
Some debug printfs for SD are coming up in stdout. Redirected them to stderr instead.
Signed-off-by Peter Crosthwaite <[email protected]>--- hw/sd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan