summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-11 12:53:34 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2017-10-11 12:53:34 +0200
commit7c70622e26e292fa444b3928c3d645a0d7871c3a (patch)
treeab2e45c605e4cf43bbab612ebc79202dee75e327
parent78d3415365239b412845671472e2b48f737d047a (diff)
downloaduca-net-7c70622e26e292fa444b3928c3d645a0d7871c3a.tar.gz
uca-net-7c70622e26e292fa444b3928c3d645a0d7871c3a.tar.bz2
uca-net-7c70622e26e292fa444b3928c3d645a0d7871c3a.tar.xz
uca-net-7c70622e26e292fa444b3928c3d645a0d7871c3a.zip
ucad: print errors on stderr
-rw-r--r--ucad.c10
1 files 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);