提交 5cd5e2e7 编写于 作者: P Philippe Mathieu-Daudé 提交者: Peter Maydell

sdcard: replace fprintf() by qemu_hexdump()

Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: NAlistair Francis <alistair.francis@xilinx.com>
Message-id: 20180215220540.6556-5-f4bug@amsat.org
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
上级 55921932
......@@ -44,13 +44,6 @@
//#define DEBUG_SD 1
#ifdef DEBUG_SD
#define DPRINTF(fmt, ...) \
do { fprintf(stderr, "SD: " fmt , ## __VA_ARGS__); } while (0)
#else
#define DPRINTF(fmt, ...) do {} while(0)
#endif
#define ACMD41_ENQUIRY_MASK 0x00ffffff
#define OCR_POWER_UP 0x80000000
#define OCR_POWER_DELAY_NS 500000 /* 0.5ms */
......@@ -1632,14 +1625,7 @@ send_response:
}
#ifdef DEBUG_SD
if (rsplen) {
int i;
DPRINTF("Response:");
for (i = 0; i < rsplen; i++) {
DPRINTF(" %02x", response[i]);
}
DPRINTF(" state %d\n", sd->state);
}
qemu_hexdump((const char *)response, stderr, "Response", rsplen);
#endif
return rsplen;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册