[evince/wip/app] thumbnailer: Send error messages to stderr



commit 124f8c15795c21638564c9e60d29b53e3aaaa97c
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 14 00:00:02 2012 +0200

    thumbnailer: Send error messages to stderr
    
    Use g_printerr, not g_print.

 thumbnailer/evince-thumbnailer.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index b17edba..5040c9b 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -71,10 +71,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);
 }
@@ -252,7 +252,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;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]