Mercurial > geeqie
diff src/print.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/print.c Fri May 16 12:08:51 2008 +0000 +++ b/src/print.c Fri May 16 12:16:49 2008 +0000 @@ -967,7 +967,7 @@ if (pipe_handler_data) { - printf("warning SIGPIPE handler already in use\n"); + log_printf("warning SIGPIPE handler already in use\n"); return NULL; } @@ -990,7 +990,7 @@ static void pipe_handler_free(PipeError *pe) { if (!pe) return; - if (pe != pipe_handler_data) printf("warning SIGPIPE handler not closing same data\n"); + if (pe != pipe_handler_data) log_printf("warning SIGPIPE handler not closing same data\n"); /* restore the original signal handler */ sigaction(SIGPIPE, &pe->old_action, NULL); @@ -1622,11 +1622,11 @@ { if (dpi == 0.0) { - printf("pango dpi unknown, assuming %.0f\n", fallback_dpi); + log_printf("pango dpi unknown, assuming %.0f\n", fallback_dpi); } else { - printf("pango dpi reported as %.0f ignored, assuming %.0f\n", dpi, fallback_dpi); + log_printf("pango dpi reported as %.0f ignored, assuming %.0f\n", dpi, fallback_dpi); } warned = TRUE; }