cdvdgigaherz: Fix printf sign mismatch warnings

Fixes warning C6340: printf sign mismatch

Only remaining warnings for cdvdGigaherz (using level 4 warning
settings) are:
C6258: TerminateThread does not allow proper thread clean up
C4201: nonstandard extension used: nameless struct/union (from the
lo/hi u128 struct in common/include/Pcsx2Types.h)
This commit is contained in:
Jonathan Li 2016-09-20 00:45:29 +01:00
parent 57d029f34a
commit c64e8f944e
3 changed files with 5 additions and 5 deletions

View File

@ -521,7 +521,7 @@ s32 CALLBACK CDVDgetTOC(u8 *tocBuff)
tocBuff[28] = itob(sec);
tocBuff[29] = itob(frm);
fprintf(stderr, "Track 0: %d mins %d secs %d frames\n", min, sec, frm);
fprintf(stderr, "Track 0: %u mins %u secs %u frames\n", min, sec, frm);
for (i = diskInfo.strack; i <= diskInfo.etrack; i++) {
err = CDVDgetTD(i, &trackInfo);
@ -531,7 +531,7 @@ s32 CALLBACK CDVDgetTOC(u8 *tocBuff)
tocBuff[i * 10 + 37] = itob(min);
tocBuff[i * 10 + 38] = itob(sec);
tocBuff[i * 10 + 39] = itob(frm);
fprintf(stderr, "Track %d: %d mins %d secs %d frames\n", i, min, sec, frm);
fprintf(stderr, "Track %u: %u mins %u secs %u frames\n", i, min, sec, frm);
}
} else
return -1;

View File

@ -113,7 +113,7 @@ s32 cdvdParseTOC()
tracks[tn].type = CDVD_MODE1_TRACK;
}
fprintf(stderr, "Track %d: %d mins %d secs %d frames\n", tn, min, sec, frm);
fprintf(stderr, "Track %d: %u mins %u secs %u frames\n", tn, min, sec, frm);
} else if (cdtoc.Descriptors[i].Point > 0) {
printf("Found code 0x%02x\n", cdtoc.Descriptors[i].Point);
}

View File

@ -230,7 +230,7 @@ void IOCtlSrc::SetSpindleSpeed(bool restore_defaults)
&dontcare, //#bytes returned
(LPOVERLAPPED)NULL)) //synchronous I/O == 0)
{
printf(" * CDVD: setSpindleSpeed success (%dKB/s)\n", speed);
printf(" * CDVD: setSpindleSpeed success (%uKB/s)\n", speed);
} else {
printf(" * CDVD: setSpindleSpeed failed! \n");
}
@ -418,7 +418,7 @@ s32 IOCtlSrc::ReadSectors2352(u32 sector, u32 count, char *buffer)
rri.TrackMode = CDDA;
printf(" * CDVD: Trying CDDA\n");
if (DeviceIoControl(device, IOCTL_CDROM_RAW_READ, &rri, sizeof(rri), buffer, 2352 * count, &size, NULL) == 0) {
printf(" * CDVD: Failed to read this CD-ROM with error code: %d\n", GetLastError());
printf(" * CDVD: Failed to read this CD-ROM with error code: %u\n", GetLastError());
return -1;
}
}