summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index e361a06e72..90763bb9a6 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1441,7 +1441,7 @@ static bool get_next(struct tagcache_search *tcs)
1441 { 1441 {
1442 tcs->valid = false; 1442 tcs->valid = false;
1443 logf("too long tag #2"); 1443 logf("too long tag #2");
1444 logf("P:%X/%X", tcs->position, entry.tag_length); 1444 logf("P:%lX/%lX", tcs->position, entry.tag_length);
1445 return false; 1445 return false;
1446 } 1446 }
1447 1447
@@ -2667,7 +2667,7 @@ static int build_index(int index_type, struct tagcache_header *h, int tmpfd)
2667 2667
2668 if (idxbuf[j].tag_seek[index_type] < 0) 2668 if (idxbuf[j].tag_seek[index_type] < 0)
2669 { 2669 {
2670 logf("update error: %d/%d/%d", 2670 logf("update error: %ld/%d/%ld",
2671 idxbuf[j].flag, i+j, tcmh.tch.entry_count); 2671 idxbuf[j].flag, i+j, tcmh.tch.entry_count);
2672 error = true; 2672 error = true;
2673 goto error_exit; 2673 goto error_exit;
@@ -4028,7 +4028,7 @@ static bool load_tagcache(void)
4028 if (bytesleft < 0) 4028 if (bytesleft < 0)
4029 { 4029 {
4030 logf("too big tagcache #2"); 4030 logf("too big tagcache #2");
4031 logf("tl: %d", fe->tag_length); 4031 logf("tl: %ld", fe->tag_length);
4032 logf("bl: %ld", bytesleft); 4032 logf("bl: %ld", bytesleft);
4033 close(fd); 4033 close(fd);
4034 return false; 4034 return false;
@@ -4042,7 +4042,7 @@ static bool load_tagcache(void)
4042 { 4042 {
4043 logf("read error #13"); 4043 logf("read error #13");
4044 logf("rc=0x%04x", rc); // 0x431 4044 logf("rc=0x%04x", rc); // 0x431
4045 logf("len=0x%04x", fe->tag_length); // 0x4000 4045 logf("len=0x%04lx", fe->tag_length); // 0x4000
4046 logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433 4046 logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433
4047 logf("tag=0x%02x", tag); // 0x00 4047 logf("tag=0x%02x", tag); // 0x00
4048 close(fd); 4048 close(fd);
@@ -4105,7 +4105,7 @@ static bool check_deleted_files(void)
4105 if (!file_exists(buf)) 4105 if (!file_exists(buf))
4106 { 4106 {
4107 logf("Entry no longer valid."); 4107 logf("Entry no longer valid.");
4108 logf("-> %s / %d", buf, tfe.tag_length); 4108 logf("-> %s / %ld", buf, tfe.tag_length);
4109 delete_entry(tfe.idx_id); 4109 delete_entry(tfe.idx_id);
4110 } 4110 }
4111 } 4111 }