From af08281f10ab11d5f8a16b5aaa451ba2f7f07c02 Mon Sep 17 00:00:00 2001 From: saratoga Date: Wed, 27 Jan 2010 18:05:28 +0000 Subject: [PATCH] Fix warnings on 32 bit sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24347 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/aiff.c | 3 ++- apps/codecs/wav.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 1b8c2da92..497e0c7c3 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c @@ -218,7 +218,8 @@ next_track: codec = get_codec(format.formattag); if (codec == 0) { - DEBUGF("CODEC_ERROR: AIFC does not support compressionType: 0x%x\n", format.formattag); + DEBUGF("CODEC_ERROR: AIFC does not support compressionType: 0x%x\n", + (unsigned int)format.formattag); i = CODEC_ERROR; goto done; } diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index 1f210a99b..774cfaf8e 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -174,8 +174,8 @@ next_track: /* this is not a fatal error with some formats, * we'll see later if we can't decode it */ DEBUGF("CODEC_WARNING: non-PCM WAVE (formattag=0x%x) " - "doesn't have ext. fmt descr (chunksize=%ld<18).\n", - format.formattag, (long)i); + "doesn't have ext. fmt descr (chunksize=%d<18).\n", + (unsigned int)format.formattag, i); } else { @@ -202,7 +202,8 @@ next_track: codec = get_wave_codec(format.formattag); if (!codec) { - DEBUGF("CODEC_ERROR: unsupport wave format %x\n", format.formattag); + DEBUGF("CODEC_ERROR: unsupported wave format %x\n", + (unsigned int) format.formattag); status = CODEC_ERROR; goto done; } -- 2.11.4.GIT