Skip to content

Commit

Permalink
Suppress debug output for unsupported commands in ide_cdrom.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexoughton committed Feb 26, 2022
1 parent 2f86ca1 commit efff967
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ide_cdrom.cpp
Expand Up @@ -1314,8 +1314,8 @@ void cdrom_handle_pkt(ide_config *ide)

if (err)
{
printf("(!) Error in packet command %02X\n", cmdbuf[0]);
hexdump(cmdbuf, 12, 0);
dbg_printf("(!) Error in packet command %02X\n", cmdbuf[0]);
dbg_hexdump(cmdbuf, 12, 0);
cdrom_reply(ide, ATA_ERR_ABRT);
}
}
Expand Down Expand Up @@ -1382,8 +1382,8 @@ int cdrom_handle_cmd(ide_config *ide)
return 1; // must always fail

default:
printf("(!) Unsupported command\n");
ide_print_regs(&ide->regs);
dbg_printf("(!) Unsupported command\n");
dbg_print_regs(&ide->regs);
return 1;
}

Expand Down

0 comments on commit efff967

Please sign in to comment.