From dc7734b49d5128a445aa0788fde8dff169f1d4cb Mon Sep 17 00:00:00 2001 From: phyto Date: Tue, 2 Jul 2019 19:36:55 +0200 Subject: [PATCH] is pid display futil ? --- v4l2/grabvidseq.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v4l2/grabvidseq.c b/v4l2/grabvidseq.c index f6a7c1ce..caf5306e 100644 --- a/v4l2/grabvidseq.c +++ b/v4l2/grabvidseq.c @@ -145,7 +145,7 @@ for (n_buffers = 0; n_buffers < req.count; ++n_buffers) { fd, buf.m.offset); if (MAP_FAILED == buffers[n_buffers].start) { - perror("mmap"); + perror("v4l2_mmap"); exit(EXIT_FAILURE); } } @@ -163,7 +163,8 @@ for (i = 0; i < n_buffers; ++i) { type = V4L2_BUF_TYPE_VIDEO_CAPTURE; xioctl(fd, VIDIOC_STREAMON, &type); -if (verbosity) fprintf(stderr,"pid %d grabbing...\n", getpid()); +if (verbosity) fprintf(stderr,"pid %d grabbing %d picz...\n", + getpid(), nbre_capt); for (i = 0; i < nbre_capt; i++) { do { @@ -208,7 +209,7 @@ for (i = 0; i < nbre_capt; i++) { } t_final = fimg_timer_get(0); -fprintf(stderr, "elapsed time %g s\n", t_final); +fprintf(stderr, "pid %d : elapsed time %g s\n", getpid(), t_final); type = V4L2_BUF_TYPE_VIDEO_CAPTURE; xioctl(fd, VIDIOC_STREAMOFF, &type);