mirror of https://github.com/PCSX2/pcsx2.git
gsdx|spu2x: fix %d/%u in printf (cppcheck)
This commit is contained in:
parent
077ae2e6a0
commit
1e7fd83ac5
|
@ -1282,7 +1282,7 @@ struct GSPrivRegSet
|
||||||
if(i == 0 && !PMODE.EN1) continue;
|
if(i == 0 && !PMODE.EN1) continue;
|
||||||
if(i == 1 && !PMODE.EN2) continue;
|
if(i == 1 && !PMODE.EN2) continue;
|
||||||
|
|
||||||
fprintf(fp, "DISPFB[%d] BP=%05x BW=%d PSM=%d DBX=%d DBY=%d\n",
|
fprintf(fp, "DISPFB[%d] BP=%05x BW=%u PSM=%u DBX=%u DBY=%u\n",
|
||||||
i,
|
i,
|
||||||
DISP[i].DISPFB.Block(),
|
DISP[i].DISPFB.Block(),
|
||||||
DISP[i].DISPFB.FBW,
|
DISP[i].DISPFB.FBW,
|
||||||
|
@ -1291,7 +1291,7 @@ struct GSPrivRegSet
|
||||||
DISP[i].DISPFB.DBY
|
DISP[i].DISPFB.DBY
|
||||||
);
|
);
|
||||||
|
|
||||||
fprintf(fp, "DISPLAY[%d] DX=%d DY=%d DW=%d DH=%d MAGH=%d MAGV=%d\n",
|
fprintf(fp, "DISPLAY[%d] DX=%u DY=%u DW=%u DH=%u MAGH=%u MAGV=%u\n",
|
||||||
i,
|
i,
|
||||||
DISP[i].DISPLAY.DX,
|
DISP[i].DISPLAY.DX,
|
||||||
DISP[i].DISPLAY.DY,
|
DISP[i].DISPLAY.DY,
|
||||||
|
|
|
@ -356,7 +356,7 @@ void GSRendererDX::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc
|
||||||
}
|
}
|
||||||
else if ((fbmask & 0xFF) != 0xFF) {
|
else if ((fbmask & 0xFF) != 0xFF) {
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
fprintf(stderr, "Please fix me! wb %d wr %d\n", om_bsel.wb, om_bsel.wr);
|
fprintf(stderr, "Please fix me! wb %u wr %u\n", om_bsel.wb, om_bsel.wr);
|
||||||
#endif
|
#endif
|
||||||
//ASSERT(0);
|
//ASSERT(0);
|
||||||
}
|
}
|
||||||
|
@ -370,7 +370,7 @@ void GSRendererDX::DrawPrims(GSTexture* rt, GSTexture* ds, GSTextureCache::Sourc
|
||||||
}
|
}
|
||||||
else if ((fbmask & 0xFF) != 0xFF) {
|
else if ((fbmask & 0xFF) != 0xFF) {
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
fprintf(stderr, "Please fix me! wa %d wg %d\n", om_bsel.wa, om_bsel.wg);
|
fprintf(stderr, "Please fix me! wa %u wg %u\n", om_bsel.wa, om_bsel.wg);
|
||||||
#endif
|
#endif
|
||||||
//ASSERT(0);
|
//ASSERT(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,10 +53,10 @@ void Open()
|
||||||
for (int srcidx = 0; srcidx < CoreSrc_Count; srcidx++) {
|
for (int srcidx = 0; srcidx < CoreSrc_Count; srcidx++) {
|
||||||
safe_delete(m_CoreWav[cidx][srcidx]);
|
safe_delete(m_CoreWav[cidx][srcidx]);
|
||||||
#ifdef __POSIX__
|
#ifdef __POSIX__
|
||||||
sprintf(wavfilename, "logs/spu2x-Core%d-%s.wav",
|
sprintf(wavfilename, "logs/spu2x-Core%ud-%s.wav",
|
||||||
cidx, m_tbl_CoreOutputTypeNames[srcidx]);
|
cidx, m_tbl_CoreOutputTypeNames[srcidx]);
|
||||||
#else
|
#else
|
||||||
sprintf(wavfilename, "logs\\spu2x-Core%d-%s.wav",
|
sprintf(wavfilename, "logs\\spu2x-Core%ud-%s.wav",
|
||||||
cidx, m_tbl_CoreOutputTypeNames[srcidx]);
|
cidx, m_tbl_CoreOutputTypeNames[srcidx]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue