total_object_size -= size;
}
} else if (errno != ENOENT) {
- fprintf(stderr, "ccache: failed to unlink %s (%s)\n",
- path, strerror(errno));
+ cc_log("Failed to unlink %s (%s)", path, strerror(errno));
}
}
if (lstat(path, &st) == 0) {
delete_file(path, file_size(&st) / 1024);
} else if (errno != ENOENT) {
- fprintf(stderr, "ccache: failed to stat %s (%s)\n",
- path, strerror(errno));
+ cc_log("Failed to stat %s (%s)", path, strerror(errno));
}
free(path);
}