From 3354531614340b9a6b32cbf1b1d9b29a7c0b6513 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 20 Mar 2007 13:53:23 +0000 Subject: More logf fixes. speex.c wants to format 64bit args so I didn't change that one nor add any formatting for that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12858 a1c6a512-1295-4272-9138-f99709370657 --- apps/tagcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/tagcache.c') diff --git a/apps/tagcache.c b/apps/tagcache.c index 3a8e73599b..6f49d372e3 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c @@ -2395,7 +2395,7 @@ static int build_index(int index_type, struct tagcache_header *h, int tmpfd) { logf("too long entry!"); logf("length=%d", entry.tag_length[index_type]); - logf("pos=0x%02x", lseek(tmpfd, 0, SEEK_CUR)); + logf("pos=0x%02lx", lseek(tmpfd, 0, SEEK_CUR)); error = true; break ; } @@ -2429,7 +2429,7 @@ static int build_index(int index_type, struct tagcache_header *h, int tmpfd) idxbuf[j].tag_seek[index_type] = tempbuf_find_location(i + j); if (idxbuf[j].tag_seek[index_type] < 0) { - logf("entry not found (%d)"); + logf("entry not found (%d)", j); error = true; break ; } @@ -3496,7 +3496,7 @@ static bool load_tagcache(void) logf("read error #13"); logf("rc=0x%04x", rc); // 0x431 logf("len=0x%04x", fe->tag_length); // 0x4000 - logf("pos=0x%04x", lseek(fd, 0, SEEK_CUR)); // 0x433 + logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433 logf("tag=0x%02x", tag); // 0x00 close(fd); return false; -- cgit v1.2.3