summaryrefslogtreecommitdiffstats
path: root/bin/tools/grab.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:30:59 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:30:59 +0200
commitf8b64ceea625df8bcddaa7310fe250349c5e5468 (patch)
tree4ad5381f63c4da7b9453dc3089a22d2f38c6c2df /bin/tools/grab.c
parentc4b7df41a9d5d597366885f81faec4a4a1804674 (diff)
downloaduca-f8b64ceea625df8bcddaa7310fe250349c5e5468.tar.gz
uca-f8b64ceea625df8bcddaa7310fe250349c5e5468.tar.bz2
uca-f8b64ceea625df8bcddaa7310fe250349c5e5468.tar.xz
uca-f8b64ceea625df8bcddaa7310fe250349c5e5468.zip
Print errors on stderr
Diffstat (limited to 'bin/tools/grab.c')
-rw-r--r--bin/tools/grab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/tools/grab.c b/bin/tools/grab.c
index 97a5baa..dbe826c 100644
--- a/bin/tools/grab.c
+++ b/bin/tools/grab.c
@@ -293,21 +293,21 @@ main (int argc, char *argv[])
}
if (opts.n_frames < 0) {
- g_print ("You must specify the number of acquired frames with -n/--num-frames.\n");
+ g_printerr ("You must specify the number of acquired frames with -n/--num-frames.\n");
goto cleanup_manager;
}
camera = uca_common_get_camera (manager, argv[argc - 1], &error);
if (camera == NULL) {
- g_print ("Error during initialization: %s\n", error->message);
+ g_printerr ("Error during initialization: %s\n", error->message);
goto cleanup_manager;
}
error = record_frames (camera, &opts);
if (error != NULL)
- g_print ("Error: %s\n", error->message);
+ g_printerr ("Error: %s\n", error->message);
g_option_context_free (context);
g_object_unref (camera);