summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2009-09-30 12:56:33 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2009-09-30 12:56:33 +0000
commita0eadade30b88d0481abb65bcd34da814aa2d576 (patch)
treeb5ca361baa2050cbfb8fa86b4753098d38365d78 /apps
parent3d1b26cddcc5a98acc260bb450ac8261f6cf0c5a (diff)
downloadrockbox-a0eadade30b88d0481abb65bcd34da814aa2d576.tar.gz
rockbox-a0eadade30b88d0481abb65bcd34da814aa2d576.tar.bz2
rockbox-a0eadade30b88d0481abb65bcd34da814aa2d576.zip
FS#10122 - Fix wrong format type of logf functions in speex.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/ape.c2
-rw-r--r--apps/codecs/speex.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/ape.c b/apps/codecs/ape.c
index 6c829c3863..ef3d94e1a3 100644
--- a/apps/codecs/ape.c
+++ b/apps/codecs/ape.c
@@ -281,7 +281,7 @@ frame_start:
blockstodecode)) < 0)
{
/* Frame decoding error, abort */
- LOGF("APE: Frame %d, error %d\n",currentframe,res);
+ LOGF("APE: Frame %lu, error %d\n",currentframe,res);
retval = CODEC_ERROR;
goto done;
}
diff --git a/apps/codecs/speex.c b/apps/codecs/speex.c
index 91dce9ef01..52f4239652 100644
--- a/apps/codecs/speex.c
+++ b/apps/codecs/speex.c
@@ -117,7 +117,7 @@ static spx_int64_t seek_backwards(spx_ogg_sync_state *oy, spx_ogg_page *og,
begin = 0;
time++;
} else {
- LOGF("Can't seek that early:%d\n",begin);
+ LOGF("Can't seek that early:%lld\n",begin);
return -3; /* too early */
}
}
@@ -156,7 +156,7 @@ static spx_int64_t seek_backwards(spx_ogg_sync_state *oy, spx_ogg_page *og,
} else if (lastgranule > wantedpos) { /*too late, seek more*/
if (offset != -1) {
- LOGF("Toolate, returnanyway:%d,%d,%d,%d\n",
+ LOGF("Toolate, returnanyway:%lld,%lld,%lld,%lld\n",
ret,lastgranule,wantedpos,avgpagelen);
return ret;
}
@@ -221,7 +221,7 @@ static int speex_seek_page_granule(spx_int64_t pos, spx_int64_t curpos,
offset = get_next_page(oy,&og,-1);
if (offset < 0) { /* could not find new page,use old offset */
- LOGF("Seek/guess/fault:%d->-<-%d,%d:%d,%d,%d\n",
+ LOGF("Seek/guess/fault:%lld->-<-%d,%lld:%lld,%d,%ld,%d\n",
curpos,0,pos,offset,0,
ci->curpos,/*stream_length*/0);
@@ -232,7 +232,7 @@ static int speex_seek_page_granule(spx_int64_t pos, spx_int64_t curpos,
spx_ogg_sync_reset(oy);
} else {
if (spx_ogg_page_granulepos(&og) == 0 && pos > 5000) {
- LOGF("SEEK/guess/fault:%d->-<-%d,%d:%d,%d,%d\n",
+ LOGF("SEEK/guess/fault:%lld->-<-%lld,%lld:%lld,%d,%ld,%d\n",
curpos,spx_ogg_page_granulepos(&og),pos,
offset,0,ci->curpos,/*stream_length*/0);
@@ -287,7 +287,7 @@ static int speex_seek_page_granule(spx_int64_t pos, spx_int64_t curpos,
spx_ogg_sync_reset(oy);
- LOGF("Seek failed:%d\n", offset);
+ LOGF("Seek failed:%lld\n", offset);
return -1;
}
@@ -421,7 +421,7 @@ next_track:
/*seek (seeks to the page before the position) */
if (ci->seek_time) {
if(samplerate!=0&&packet_count>1){
- LOGF("Speex seek page:%d,%d,%d,%d\n",
+ LOGF("Speex seek page:%lld,%lld,%ld,%lld,%d\n",
((spx_int64_t)ci->seek_time/1000) *
(spx_int64_t)samplerate,
page_granule, ci->seek_time,