Message ID | 3197193698388412798e8c81d8e30d9a393b670f.1439394992.git.baruch@tkos.co.il (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/contrib/test/v4l2grab.c b/contrib/test/v4l2grab.c index 3e1be3de6353..778c51cc391a 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); } }
This makes the failure error message a little more useful. Signed-off-by: Baruch Siach <baruch@tkos.co.il> --- contrib/test/v4l2grab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)