Skip to contentSkip to conversation

sd: Send debug printfery to stderr not stdout

PATCH Applied Peter Crosthwaite 3 participants 3 messages Nov 15, 2012 – Nov 16, 2012

lore
Share & tools
lore
#0 lore raw

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.

---
 hw/sd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
hw/sd.c +2 -2
index 3c34d43..607edba 100644
@@ -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