diff options
Diffstat (limited to 'redir.c')
-rw-r--r-- | redir.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -448,6 +448,7 @@ static int redir_ider_command(struct redir *r, unsigned int seqno) struct ider_command_written_message *msg = (struct ider_command_written_message *)r->buf; unsigned char device = msg->drive_select & 0x10 ? 0xb0 : 0xa0; + bool use_dma = msg->feature & 1; int i; if (msg->command != 0xa0) { @@ -455,12 +456,13 @@ static int redir_ider_command(struct redir *r, unsigned int seqno) msg->command); return -1; } - fprintf(stderr, "command %02x: ", msg->command); + fprintf(stderr, "command %02x (%sdma): ", msg->command, + use_dma ? "" : "non-"); for (i = 0; i < sizeof(msg->packet_data); i++) fprintf(stderr, "%02x ", msg->packet_data[i]); fprintf(stderr, "\n"); - return ider_handle_command(r, seqno, device, msg->packet_data); + return ider_handle_command(r, seqno, device, use_dma, msg->packet_data); } int redir_ider_recv(struct redir *r) |