diff options
author | rocky <rocky@gnu.org> | 2012-10-01 12:42:19 -0400 |
---|---|---|
committer | rocky <rocky@gnu.org> | 2012-10-01 12:42:19 -0400 |
commit | edf410f0f7006366614cd42f2faa51fddaac1406 (patch) | |
tree | 28ae5a31c1f370741a3c5329a469a0debf574559 | |
parent | e1f47ba3f7f52bd48913ae68ae53796172315517 (diff) |
Show MMC opcode on a bad MMC command
-rwxr-xr-x | lib/driver/MSWindows/win32_ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/driver/MSWindows/win32_ioctl.c b/lib/driver/MSWindows/win32_ioctl.c index d9f25c08..89f0fd45 100755 --- a/lib/driver/MSWindows/win32_ioctl.c +++ b/lib/driver/MSWindows/win32_ioctl.c @@ -603,7 +603,11 @@ run_mmc_cmd_win32ioctl( void *p_user_data, NULL); if ( 0 == b_success ) { + char buffer[100]; + snprintf(buffer, sizeof(buffer), + "MMC opcode: 0x%x\n", sptwb.Spt.Cdb[0]); windows_error(CDIO_LOG_INFO, GetLastError()); + cdio_log(CDIO_LOG_INFO, buffer); return DRIVER_OP_ERROR; } |