This makes the failure error message a little more useful. Signed-off-by: Baruch Siach <baruch@xxxxxxxxxx> --- contrib/test/v4l2grab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html