From 7c70622e26e292fa444b3928c3d645a0d7871c3a Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 11 Oct 2017 12:53:34 +0200 Subject: ucad: print errors on stderr --- ucad.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ucad.c b/ucad.c index b97d9ac..09f075c 100644 --- a/ucad.c +++ b/ucad.c @@ -460,7 +460,7 @@ main (int argc, char **argv) g_option_context_add_main_entries (context, entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) { - g_print ("Failed parsing arguments: %s\n", error->message); + g_printerr ("Failed parsing arguments: %s\n", error->message); goto cleanup_manager; } @@ -472,24 +472,24 @@ main (int argc, char **argv) camera = uca_plugin_manager_get_camera (manager, argv[argc - 1], &error, NULL); if (camera == NULL) { - g_print ("Error during initialization: %s\n", error->message); + g_printerr ("Error during initialization: %s\n", error->message); goto cleanup_camera; } if (!uca_camera_parse_arg_props (camera, argv, argc - 1, &error)) { - g_print ("Error setting properties: %s\n", error->message); + g_printerr ("Error setting properties: %s\n", error->message); goto cleanup_manager; } if (error != NULL) - g_print ("Error: %s\n", error->message); + g_printerr ("Error: %s\n", error->message); g_option_context_free (context); serve (camera, port, &error); if (error != NULL) - g_print ("Error: %s\n", error->message); + g_printerr ("Error: %s\n", error->message); cleanup_camera: g_object_unref (camera); -- cgit v1.2.3