tagcache: fix once for all those stupid warnings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25216 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2010-03-16 12:15:44 +00:00
parent e5210747cb
commit 7430bb02a1

View file

@ -1441,7 +1441,7 @@ static bool get_next(struct tagcache_search *tcs)
{ {
tcs->valid = false; tcs->valid = false;
logf("too long tag #2"); logf("too long tag #2");
logf("P:%X/%X", tcs->position, entry.tag_length); logf("P:%lX/%lX", tcs->position, entry.tag_length);
return false; return false;
} }
@ -2667,7 +2667,7 @@ static int build_index(int index_type, struct tagcache_header *h, int tmpfd)
if (idxbuf[j].tag_seek[index_type] < 0) if (idxbuf[j].tag_seek[index_type] < 0)
{ {
logf("update error: %d/%d/%d", logf("update error: %ld/%d/%ld",
idxbuf[j].flag, i+j, tcmh.tch.entry_count); idxbuf[j].flag, i+j, tcmh.tch.entry_count);
error = true; error = true;
goto error_exit; goto error_exit;
@ -4028,7 +4028,7 @@ static bool load_tagcache(void)
if (bytesleft < 0) if (bytesleft < 0)
{ {
logf("too big tagcache #2"); logf("too big tagcache #2");
logf("tl: %d", fe->tag_length); logf("tl: %ld", fe->tag_length);
logf("bl: %ld", bytesleft); logf("bl: %ld", bytesleft);
close(fd); close(fd);
return false; return false;
@ -4042,7 +4042,7 @@ static bool load_tagcache(void)
{ {
logf("read error #13"); logf("read error #13");
logf("rc=0x%04x", rc); // 0x431 logf("rc=0x%04x", rc); // 0x431
logf("len=0x%04x", fe->tag_length); // 0x4000 logf("len=0x%04lx", fe->tag_length); // 0x4000
logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433 logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433
logf("tag=0x%02x", tag); // 0x00 logf("tag=0x%02x", tag); // 0x00
close(fd); close(fd);
@ -4105,7 +4105,7 @@ static bool check_deleted_files(void)
if (!file_exists(buf)) if (!file_exists(buf))
{ {
logf("Entry no longer valid."); logf("Entry no longer valid.");
logf("-> %s / %d", buf, tfe.tag_length); logf("-> %s / %ld", buf, tfe.tag_length);
delete_entry(tfe.idx_id); delete_entry(tfe.idx_id);
} }
} }