Mercurial > geeqie
diff src/cache_maint.c @ 673:fbebf5cf4a55
Do not use printf() directly but use new wrapper function log_printf() instead.
author | zas_ |
---|---|
date | Fri, 16 May 2008 12:16:49 +0000 |
parents | 8268cbe682f1 |
children | cca86176bf81 |
line wrap: on
line diff
--- a/src/cache_maint.c Fri May 16 12:08:51 2008 +0000 +++ b/src/cache_maint.c Fri May 16 12:16:49 2008 +0000 @@ -189,7 +189,7 @@ (strlen(path_buf) > base_length && !isfile(path_buf + base_length)) ) { if (dot) *dot = '.'; - if (!unlink_file(path_buf)) printf("failed to delete:%s\n", path_buf); + if (!unlink_file(path_buf)) log_printf("failed to delete:%s\n", path_buf); } else { @@ -212,7 +212,7 @@ { if (!still_have_a_file && !dlist && cm->list->next && !rmdir_utf8(fd->path)) { - printf("Unable to delete dir: %s\n", fd->path); + log_printf("Unable to delete dir: %s\n", fd->path); } } else @@ -220,7 +220,7 @@ /* must re-check for an empty dir */ if (isempty(fd->path) && cm->list->next && !rmdir_utf8(fd->path)) { - printf("Unable to delete dir: %s\n", fd->path); + log_printf("Unable to delete dir: %s\n", fd->path); } } @@ -377,7 +377,7 @@ DEBUG_1("Deleting thumb dir: %s", fd->path); if (!rmdir_utf8(fd->path)) { - printf("Unable to delete dir: %s\n", fd->path); + log_printf("Unable to delete dir: %s\n", fd->path); } } else @@ -401,7 +401,7 @@ (strlen(path) > base_length && !isfile(path + base_length)) ) { if (dot) *dot = '.'; - if (!unlink_file(path)) printf("failed to delete:%s\n", path); + if (!unlink_file(path)) log_printf("failed to delete:%s\n", path); } else { @@ -533,7 +533,7 @@ } else { - printf("Failed to create cache dir for move %s\n", base); + log_printf("Failed to create cache dir for move %s\n", base); } g_free(base);