diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index faf34a94..48b2f948 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); }