GTK2 no longer supported
[geeqie.git] / src / filecache.c
index 9e9db8b..91a4b6f 100644 (file)
@@ -69,10 +69,10 @@ gboolean file_cache_get(FileCacheData *fc, FileData *fd)
                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);
 
@@ -86,7 +86,7 @@ gboolean file_cache_get(FileCacheData *fc, FileData *fd)
                        }
                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;
 }
 
@@ -106,7 +106,7 @@ void file_cache_set_size(FileCacheData *fc, gulong size)
                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);
@@ -120,7 +120,7 @@ void file_cache_put(FileCacheData *fc, FileData *fd, gulong size)
 
        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;
@@ -164,7 +164,7 @@ static void file_cache_remove_fd(FileCacheData *fc, FileData *fd)
                        {
                        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);
@@ -178,13 +178,13 @@ void file_cache_dump(FileCacheData *fc)
        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);
                }
 }