Mercurial > hg > dmlib
comparison src/dmengine.c @ 2384:36edd316184a
Fix some format strings to use proper PRI*_SIZE_T where necessary.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 15:20:23 +0200 |
parents | 5e5f75b45f8d |
children | 69a5af2eb1ea |
comparison
equal
deleted
inserted
replaced
2383:43e39d9ec42f | 2384:36edd316184a |
---|---|
206 | 206 |
207 static int engineResVorbisLoad(DMResource *res) | 207 static int engineResVorbisLoad(DMResource *res) |
208 { | 208 { |
209 OggVorbis_File vf; | 209 OggVorbis_File vf; |
210 | 210 |
211 dmMsg(2, "vorbisfile '%s', %d bytes resource loading\n", | 211 dmMsg(2, "vorbisfile '%s', %" DM_PRIu_SIZE_T " bytes resource loading\n", |
212 res->filename, res->rawSize); | 212 res->filename, res->rawSize); |
213 | 213 |
214 if (ov_open_callbacks(res, &vf, NULL, 0, vorbisFileCBS) < 0) | 214 if (ov_open_callbacks(res, &vf, NULL, 0, vorbisFileCBS) < 0) |
215 return DMERR_FOPEN; | 215 return DMERR_FOPEN; |
216 | 216 |
219 { | 219 { |
220 ov_clear(&vf); | 220 ov_clear(&vf); |
221 return DMERR_MALLOC; | 221 return DMERR_MALLOC; |
222 } | 222 } |
223 | 223 |
224 dmMsg(2, "rdataSize=%d bytes?\n", res->resSize); | 224 dmMsg(2, "rdataSize=%" DM_PRIu_SIZE_T " bytes?\n", res->resSize); |
225 | 225 |
226 BOOL eof = FALSE; | 226 BOOL eof = FALSE; |
227 int left = res->resSize; | 227 int left = res->resSize; |
228 char *ptr = res->resData; | 228 char *ptr = res->resData; |
229 int current_section; | 229 int current_section; |