summaryrefslogtreecommitdiff
path: root/src/filelist.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-03-01 23:58:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2012-03-01 23:58:41 +0100
commit88d1ad68b27e84407bc63ab837b8c155b6b2b761 (patch)
tree749a2ab14394b4c2d8f9809b9bd023aeedf78baf /src/filelist.c
parent69ecc5c1fdbff7c26d2d59cfdda86eeaf0ffadff (diff)
quiet/verbose adjustments
Diffstat (limited to 'src/filelist.c')
-rw-r--r--src/filelist.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/filelist.c b/src/filelist.c
index 9756c27..34df6cf 100644
--- a/src/filelist.c
+++ b/src/filelist.c
@@ -215,15 +215,13 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level)
}
n = scandir(path, &de, file_selector_all, alphasort);
if (n < 0) {
- switch (errno) {
- case ENOMEM:
- if (!opt.quiet)
- weprintf("Insufficient memory to scan directory %s:", path);
- break;
- default:
- if (!opt.quiet)
- weprintf("Failed to scan directory %s:", path);
- }
+ switch (errno) {
+ case ENOMEM:
+ weprintf("Insufficient memory to scan directory %s:", path);
+ break;
+ default:
+ weprintf("Failed to scan directory %s:", path);
+ }
}
for (cnt = 0; cnt < n; cnt++) {
@@ -275,9 +273,6 @@ gib_list *feh_file_info_preload(gib_list * list)
feh_file *file = NULL;
gib_list *remove_list = NULL;
- if (opt.verbose)
- fputs(PACKAGE " - preloading...\n", stdout);
-
for (l = list; l; l = l->next) {
file = FEH_FILE(l->data);
D(("file %p, file->next %p, file->name %s\n", l, l->next, file->name));
@@ -533,7 +528,7 @@ void feh_save_filelist()
tmpname = feh_unique_filename("", "filelist");
- if (!opt.quiet)
+ if (opt.verbose)
printf("saving filelist to filename '%s'\n", tmpname);
feh_write_filelist(filelist, tmpname);