From cfbab0ad8e12730462bdefdd389cadb43f4c0f0a Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 14 Jun 2012 00:00:02 +0200 Subject: thumbnailer: Send error messages to stderr Use g_printerr, not g_print. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-6&id=3b59d64 --- thumbnailer/atril-thumbnailer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'thumbnailer/atril-thumbnailer.c') diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c index bc62502d..6e189040 100644 --- a/thumbnailer/atril-thumbnailer.c +++ b/thumbnailer/atril-thumbnailer.c @@ -62,10 +62,10 @@ time_monitor (gpointer data) app_name = g_get_application_name (); if (app_name == NULL) app_name = g_get_prgname (); - g_print ("%s couldn't process file: '%s'\n" - "Reason: Took too much time to process.\n", - app_name, - (const char *) data); + g_printerr ("%s couldn't process file: '%s'\n" + "Reason: Took too much time to process.\n", + app_name, + (const char *) data); exit (0); } @@ -271,7 +271,7 @@ main (int argc, char *argv[]) g_option_context_free (context); if (size < 1) { - g_print ("Size cannot be smaller than 1 pixel\n"); + g_printerr ("Size cannot be smaller than 1 pixel\n"); return -1; } -- cgit v1.2.1