From 2e8c5d3592bad563e391b6c13ea1c1e5d64f01bf Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Fri, 1 Jun 2012 15:53:23 -0400 Subject: [PATCH] Better to use glib's g_printerr. --- termite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/termite.c b/termite.c index 3ab6fe5..7e94ef4 100644 --- a/termite.c +++ b/termite.c @@ -173,7 +173,7 @@ int main(int argc, char **argv) { g_option_context_add_group(context, gtk_get_option_group(TRUE)); if (!g_option_context_parse(context, &argc, &argv, &error)) { - g_print("option parsing failed: %s\n", error->message); + g_printerr("option parsing failed: %s\n", error->message); return 1; } @@ -208,7 +208,7 @@ int main(int argc, char **argv) { VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error); if (!pty) { - fprintf(stderr, "Failed to create pty: %s\n", error->message); + g_printerr("Failed to create pty: %s\n", error->message); return 1; } @@ -223,7 +223,7 @@ int main(int argc, char **argv) { &ppid, &error)) { vte_terminal_watch_child(VTE_TERMINAL(vte), ppid); } else { - fprintf(stderr, "The new terminal's command failed to run: %s\n", error->message); + g_printerr("The new terminal's command failed to run: %s\n", error->message); return 1; }