diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
2395 | { | 2395 | { |
2396 | logf("too long entry!"); | 2396 | logf("too long entry!"); |
2397 | logf("length=%d", entry.tag_length[index_type]); | 2397 | logf("length=%d", entry.tag_length[index_type]); |
2398 | logf("pos=0x%02x", lseek(tmpfd, 0, SEEK_CUR)); | 2398 | logf("pos=0x%02lx", lseek(tmpfd, 0, SEEK_CUR)); |
2399 | error = true; | 2399 | error = true; |
2400 | break ; | 2400 | break ; |
2401 | } | 2401 | } |
@@ -2429,7 +2429,7 @@ static int build_index(int index_type, struct tagcache_header *h, int tmpfd) | |||
2429 | idxbuf[j].tag_seek[index_type] = tempbuf_find_location(i + j); | 2429 | idxbuf[j].tag_seek[index_type] = tempbuf_find_location(i + j); |
2430 | if (idxbuf[j].tag_seek[index_type] < 0) | 2430 | if (idxbuf[j].tag_seek[index_type] < 0) |
2431 | { | 2431 | { |
2432 | logf("entry not found (%d)"); | 2432 | logf("entry not found (%d)", j); |
2433 | error = true; | 2433 | error = true; |
2434 | break ; | 2434 | break ; |
2435 | } | 2435 | } |
@@ -3496,7 +3496,7 @@ static bool load_tagcache(void) | |||
3496 | logf("read error #13"); | 3496 | logf("read error #13"); |
3497 | logf("rc=0x%04x", rc); // 0x431 | 3497 | logf("rc=0x%04x", rc); // 0x431 |
3498 | logf("len=0x%04x", fe->tag_length); // 0x4000 | 3498 | logf("len=0x%04x", fe->tag_length); // 0x4000 |
3499 | logf("pos=0x%04x", lseek(fd, 0, SEEK_CUR)); // 0x433 | 3499 | logf("pos=0x%04lx", lseek(fd, 0, SEEK_CUR)); // 0x433 |
3500 | logf("tag=0x%02x", tag); // 0x00 | 3500 | logf("tag=0x%02x", tag); // 0x00 |
3501 | close(fd); | 3501 | close(fd); |
3502 | return false; | 3502 | return false; |