This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: v4l2grab: print function name and ioctl number on failure
Author:  Baruch Siach <[email protected]>
Date:    Wed Aug 12 12:56:32 2015 -0300

This makes the failure error message a little more useful.

Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 contrib/test/v4l2grab.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=4ba7ff1c05a2c4a944dbff4500635ed622551daf

diff --git a/contrib/test/v4l2grab.c b/contrib/test/v4l2grab.c
index 3e1be3d..778c51c 100644
--- a/contrib/test/v4l2grab.c
+++ b/contrib/test/v4l2grab.c
@@ -43,7 +43,8 @@ static void xioctl(int fh, unsigned long int request, void 
*arg)
        } while (r == -1 && ((errno == EINTR) || (errno == EAGAIN)));
 
        if (r == -1) {
-               fprintf(stderr, "error %d, %s\n", errno, strerror(errno));
+               fprintf(stderr, "%s(%lu): error %d, %s\n", __func__,
+                       _IOC_NR(request), errno, strerror(errno));
                exit(EXIT_FAILURE);
        }
 }

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to