Mercurial > geeqie
diff src/main.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 | 9f00d0d874fa |
line wrap: on
line diff
--- a/src/main.c Fri May 16 12:08:51 2008 +0000 +++ b/src/main.c Fri May 16 12:16:49 2008 +0000 @@ -374,19 +374,19 @@ else if (strcmp(cmd_line, "-v") == 0 || strcmp(cmd_line, "--version") == 0) { - printf("%s %s\n", GQ_APPNAME, VERSION); + log_printf("%s %s\n", GQ_APPNAME, VERSION); exit(0); } else if (strcmp(cmd_line, "--alternate") == 0) { /* enable faster experimental algorithm */ - printf("Alternate similarity algorithm enabled\n"); + log_printf("Alternate similarity algorithm enabled\n"); image_sim_alternate_set(TRUE); } else if (strcmp(cmd_line, "-h") == 0 || strcmp(cmd_line, "--help") == 0) { - printf("%s %s\n", GQ_APPNAME, VERSION); + log_printf("%s %s\n", GQ_APPNAME, VERSION); printf_term(_("Usage: %s [options] [path]\n\n"), GQ_APPNAME_LC); print_term(_("valid options are:\n")); print_term(_(" +t, --with-tools force show of tools\n")); @@ -728,7 +728,7 @@ srand(time(NULL)); #if 1 - printf("%s %s, This is an alpha release.\n", GQ_APPNAME, VERSION); + log_printf("%s %s, This is an alpha release.\n", GQ_APPNAME, VERSION); #endif parse_command_line_for_debug_option(argc, argv);