From: Andre Date: Sun, 16 Apr 2006 17:13:32 +0000 (+0200) Subject: mpdec.c: %d -> %zd conversion X-Git-Tag: v0.2.12~88 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=adc7eb6f44875124919258916f039eaaac603c82;p=paraslash.git mpdec.c: %d -> %zd conversion This fixes some warnings of the form mp3dec.c:66: warning: format '%d' expects type 'int', but argument 5 has type 'size_t' on MacOs. --- diff --git a/mp3dec.c b/mp3dec.c index 4599df90..764fc266 100644 --- a/mp3dec.c +++ b/mp3dec.c @@ -63,7 +63,7 @@ next_frame: if (ret) { if (MAD_RECOVERABLE(pmd->stream.error) || pmd->stream.error == MAD_ERROR_BUFLEN) goto out; - PARA_ERROR_LOG("fatal: ret = %d, loaded = %d\n", ret, fn->loaded); + PARA_ERROR_LOG("fatal: ret = %d, loaded = %zd\n", ret, fn->loaded); return -E_MAD_FRAME_DECODE; } mad_synth_frame(&pmd->synth, &pmd->frame); @@ -82,7 +82,7 @@ next_frame: } if (fn->loaded != fn->bufsize) /* output buffer not full */ continue; - PARA_ERROR_LOG("output buffer full: %d\n", fn->loaded); + PARA_ERROR_LOG("output buffer full: %zd\n", fn->loaded); return -E_MP3DEC_OVERRUN; } if (fn->loaded <= fn->bufsize * 4 / 5) @@ -90,7 +90,7 @@ next_frame: out: if (pmd->stream.next_frame) { /* we still have some data */ size_t off = pmd->stream.bufend - pmd->stream.next_frame; - PARA_DEBUG_LOG("converted %d, %d input bytes, %d output bytes\n", + PARA_DEBUG_LOG("converted %zd, %zd input bytes, %zd output bytes\n", len - off, off, fn->loaded); return copy - off; }