From 3e60fed5ed2c7557ac1386a174d7f0895b2435de Mon Sep 17 00:00:00 2001 From: tth Date: Thu, 14 Nov 2019 22:21:18 +0100 Subject: [PATCH] messages... --- v4l2/grabvidseq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index faf34a9..48b2f94 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -140,9 +140,10 @@ while ((opt = getopt(argc, argv, "d:ghn:o:O:p:s:uv")) != -1) { if (verbosity) { fprintf(stderr, "running %s pid=%d\n", argv[0], getpid()); + fprintf(stderr, "grabing %d picz\n", nbre_capt); fprintf(stderr, "period is %.3f milliseconds\n", period/1e3); fprintf(stderr, "framesize is %dx%d\n", width, height); - fprintf(stderr, "upscaling is %s\n", upscaling ? "on" : "off"); + if (upscaling) fprintf(stderr, "upscaling is on\n"); } fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0); @@ -160,11 +161,11 @@ fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; xioctl(fd, VIDIOC_S_FMT, &fmt); if (fmt.fmt.pix.pixelformat != V4L2_PIX_FMT_RGB24) { /* are others formats usable ? */ - printf("Libv4l didn't accept RGB24 format. Can't proceed.\n"); + fprintf(stderr, "Libv4l didn't accept RGB24 format. Can't proceed.\n"); exit(EXIT_FAILURE); } if ((fmt.fmt.pix.width != width) || (fmt.fmt.pix.height != height)) { - printf("Warning: driver is sending image at %dx%d\n", + fprintf(stderr, "Warning: driver is sending image at %dx%d\n", fmt.fmt.pix.width, fmt.fmt.pix.height); }