Fix logf lines in codecs (type mismatches)
authorBlue_Dude <Blue_Dude@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 01:57:32 +0000 (15 01:57 +0000)
committerBlue_Dude <Blue_Dude@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 01:57:32 +0000 (15 01:57 +0000)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26038 a1c6a512-1295-4272-9138-f99709370657

apps/codecs/aac.c
apps/codecs/alac.c
apps/codecs/ape.c
apps/codecs/flac.c
apps/codecs/shorten.c

index e9ff967..0f38ea1 100644 (file)
@@ -247,7 +247,7 @@ next_track:
     err = CODEC_OK;
 
 done:
-    LOGF("AAC: Decoded %lu samples\n", sound_samples_done);
+    LOGF("AAC: Decoded %lu samples\n", (unsigned long)sound_samples_done);
 
     if (ci->request_next_track())
         goto next_track;
index 1de127d..0ac6b1e 100644 (file)
@@ -146,7 +146,7 @@ enum codec_status codec_main(void)
   retval = CODEC_OK;
 
 done:
-  LOGF("ALAC: Decoded %ld samples\n",samplesdone);
+  LOGF("ALAC: Decoded %lu samples\n",(unsigned long)samplesdone);
 
   if (ci->request_next_track())
    goto next_track;
index ef3d94e..06e8842 100644 (file)
@@ -281,7 +281,7 @@ frame_start:
                                     blockstodecode)) < 0)
             {
                 /* Frame decoding error, abort */
-                LOGF("APE: Frame %lu, error %d\n",currentframe,res);
+                LOGF("APE: Frame %lu, error %d\n",(unsigned long)currentframe,res);
                 retval = CODEC_ERROR;
                 goto done;
             }
@@ -322,7 +322,7 @@ frame_start:
     retval = CODEC_OK;
 
 done:
-    LOGF("APE: Decoded %ld samples\n",samplesdone);
+    LOGF("APE: Decoded %lu samples\n",(unsigned long)samplesdone);
 
     if (ci->request_next_track())
         goto next_track;
index 3f2f369..14ddd3c 100644 (file)
@@ -502,7 +502,7 @@ enum codec_status codec_main(void)
     retval = CODEC_OK;
 
 done:
-    LOGF("FLAC: Decoded %ld samples\n",samplesdone);
+    LOGF("FLAC: Decoded %lu samples\n",(unsigned long)samplesdone);
 
     if (ci->request_next_track())
         goto next_track;
index 9b5c2e2..ddc2f9a 100644 (file)
@@ -126,7 +126,8 @@ seek_start:
                                     bytesleft, ci->yield);
  
         if (res == FN_ERROR) {
-            LOGF("Shorten: shorten_decode_frames error (%ld)\n", samplesdone);
+            LOGF("Shorten: shorten_decode_frames error (%lu)\n",
+                (unsigned long)samplesdone);
             break;
         } else {
             /* Insert decoded samples in pcmbuf */