* then we'll just skip the file on this pass. */
if (g_mutex_trylock(cachefile->lock)) {
int64_t age = bluesky_get_current_time() - cachefile->atime;
- g_print("%s addr=%p mapcount=%d refcount=%d size=%d atime_age=%f",
- cachefile->filename, cachefile->addr, cachefile->mapcount,
- cachefile->refcount, cachefile->disk_used, age / 1e6);
- if (cachefile->fetching)
- g_print(" (fetching)");
- g_print("\n");
+ if (bluesky_verbose) {
+ g_print("%s addr=%p mapcount=%d refcount=%d size=%d atime_age=%f",
+ cachefile->filename, cachefile->addr, cachefile->mapcount,
+ cachefile->refcount, cachefile->disk_used, age / 1e6);
+ if (cachefile->fetching)
+ g_print(" (fetching)");
+ g_print("\n");
+ }
gboolean deletion_candidate = FALSE;
if (g_atomic_int_get(&fs->log->disk_used)
}
if (deletion_candidate) {
- g_print(" ...deleting\n");
+ if (bluesky_verbose) {
+ g_print(" ...deleting\n");
+ }
if (unlinkat(fs->log->dirfd, cachefile->filename, 0) < 0) {
fprintf(stderr, "Unable to unlink journal %s: %m\n",
cachefile->filename);