diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-08-27 19:46:13 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-08-27 19:46:13 +0200 |
commit | d3c0aa11daf16c03be51e8fcb113d32320ef531c (patch) | |
tree | 817696db27535ceb859f3bffdf085878b6baad17 /src/imlib.c | |
parent | 3e284a9ac8959360278389cd537509a24f83c120 (diff) | |
parent | a15831215a8f8076a35fcb0781a1cb0289b216b7 (diff) |
Merge branch 'verbose-to-stderr' of https://github.com/nbirnel/feh into nbirnel-verbose-to-stderr
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/imlib.c b/src/imlib.c index c8bb993..36c8dff 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -276,7 +276,7 @@ int feh_load_image(Imlib_Image * im, feh_file * file) if ((err) || (!im)) { if (opt.verbose && !opt.quiet) { - fputs("\n", stdout); + fputs("\n", stderr); reset_output = 1; } feh_imlib_print_load_error(file->filename, NULL, err); @@ -994,7 +994,7 @@ void feh_display_status(char stat) D(("filelist %p, filelist->next %p\n", filelist, filelist->next)); if (!stat) { - putc('\n', stdout); + putc('\n', stderr); init_len = 0; i = 0; return; @@ -1007,24 +1007,24 @@ void feh_display_status(char stat) if (reset_output) { /* There's just been an error message. Unfortunate ;) */ for (j = 0; j < (((i % 50) + ((i % 50) / 10)) + 7); j++) - putc(' ', stdout); + putc(' ', stderr); } if (!(i % 50)) { int len = gib_list_length(filelist); - fprintf(stdout, " %5d/%d (%d)\n[%3d%%] ", + fprintf(stderr, " %5d/%d (%d)\n[%3d%%] ", i, init_len, len, ((int) ((float) i / init_len * 100))); } else if ((!(i % 10)) && (!reset_output)) - putc(' ', stdout); + putc(' ', stderr); reset_output = 0; } else - fputs("[ 0%] ", stdout); + fputs("[ 0%] ", stderr); - fprintf(stdout, "%c", stat); - fflush(stdout); + fprintf(stderr, "%c", stat); + fflush(stderr); i++; return; } |