if (fce->fd == fd)
{
/* entry exists */
- DEBUG_2("cache hit: fc=%p %s", fc, fd->path);
+ DEBUG_2("cache hit: fc=%p %s", (void *)fc, fd->path);
if (work == fc->list) return TRUE; /* already at the beginning */
/* move it to the beginning */
- DEBUG_2("cache move to front: fc=%p %s", fc, fd->path);
+ DEBUG_2("cache move to front: fc=%p %s", (void *)fc, fd->path);
fc->list = g_list_remove_link(fc->list, work);
fc->list = g_list_concat(work, fc->list);
}
work = work->next;
}
- DEBUG_2("cache miss: fc=%p %s", fc, fd->path);
+ DEBUG_2("cache miss: fc=%p %s", (void *)fc, fd->path);
return FALSE;
}
fc->list = g_list_delete_link(fc->list, work);
work = prev;
- DEBUG_2("file changed - cache remove: fc=%p %s", fc, last_fe->fd->path);
+ DEBUG_2("file changed - cache remove: fc=%p %s", (void *)fc, last_fe->fd->path);
fc->size -= last_fe->size;
fc->release(last_fe->fd);
file_data_unref(last_fe->fd);
if (file_cache_get(fc, fd)) return;
- DEBUG_2("cache add: fc=%p %s", fc, fd->path);
+ DEBUG_2("cache add: fc=%p %s", (void *)fc, fd->path);
fe = g_new(FileCacheEntry, 1);
fe->fd = file_data_ref(fd);
fe->size = size;
{
fc->list = g_list_delete_link(fc->list, current);
- DEBUG_1("cache remove: fc=%p %s", fc, fe->fd->path);
+ DEBUG_1("cache remove: fc=%p %s", (void *)fc, fe->fd->path);
fc->size -= fe->size;
fc->release(fe->fd);
file_data_unref(fe->fd);
GList *work = fc->list;
gulong n = 0;
- DEBUG_1("cache dump: fc=%p max size:%ld size:%ld", fc, fc->max_size, fc->size);
+ DEBUG_1("cache dump: fc=%p max size:%ld size:%ld", (void *)fc, fc->max_size, fc->size);
while (work)
{
FileCacheEntry *fe = work->data;
work = work->next;
- DEBUG_1("cache entry: fc=%p [%lu] %s %ld", fc, ++n, fe->fd->path, fe->size);
+ DEBUG_1("cache entry: fc=%p [%lu] %s %ld", (void *)fc, ++n, fe->fd->path, fe->size);
}
}