From ed699ae871534d3e16f0be4cbabcea9c12af0848 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 22 Oct 2009 19:58:08 +0200 Subject: [PATCH] Fix two gcc warnings on 64 bit archs. --- wma_common.c | 2 +- wmadec_filter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wma_common.c b/wma_common.c index 84f075ed..dab96257 100644 --- a/wma_common.c +++ b/wma_common.c @@ -38,7 +38,7 @@ const char *search_pattern(const char *pattern, int pattern_len, for (p = buf; p + pattern_len < end; p++) { if (memcmp(p, pattern, pattern_len)) continue; - PARA_DEBUG_LOG("found %d byte pattern@%d\n", + PARA_DEBUG_LOG("found %d byte pattern@%zd\n", pattern_len, p - buf); return p; } diff --git a/wmadec_filter.c b/wmadec_filter.c index d574df35..c5a91e0f 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -1232,7 +1232,7 @@ static int wma_decode_superframe(struct private_wmadec_data *pwd, void *data, samples += pwd->ahi.channels * pwd->frame_len; } PARA_DEBUG_LOG("frame_count: %d frame_len: %d, block_len: %d, " - "outbytes: %d, eaten: %d\n", + "outbytes: %zd, eaten: %d\n", frame_count, pwd->frame_len, pwd->block_len, (int8_t *) samples - (int8_t *) data, pwd->ahi.block_align); *data_size = (int8_t *)samples - (int8_t *)data; -- 2.39.2