X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=wma_common.c;h=0cb881e5de2eb851e5e0594d9fa18de17f100002;hp=dab96257d09876916240817811508c31c45b29d6;hb=d5538ff0dd9f6531a1a319b49c32bd72597fb2c3;hpb=b0d2e5f940e595486443700998d27053e462183a diff --git a/wma_common.c b/wma_common.c index dab96257..0cb881e5 100644 --- a/wma_common.c +++ b/wma_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009 Andre Noll + * Copyright (C) 2009-2010 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -38,8 +38,8 @@ 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@%zd\n", - pattern_len, p - buf); + PARA_DEBUG_LOG("found %d byte pattern@%d\n", + pattern_len, (int)(p - buf)); return p; } PARA_NOTICE_LOG("%d byte pattern not found\n", pattern_len); @@ -56,7 +56,7 @@ static int find_audio_stream_info(const char *buf, int len) if (!p) return -E_WMA_NO_GUID; - PARA_DEBUG_LOG("found audio stream guid@%0zx\n", p - buf); + PARA_DEBUG_LOG("found audio stream guid@%0x\n", (int)(p - buf)); return p - buf + 16; }