From 005ab78f9748bd503ad9b3f2f38caf8d43c9ed46 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 13 May 2016 21:15:18 +0300 Subject: Print driver name when querying capabilities Signed-off-by: Laurent Pinchart --- yavta.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yavta.c b/yavta.c index 49361ad..9b8b899 100644 --- a/yavta.c +++ b/yavta.c @@ -383,8 +383,8 @@ static int video_querycap(struct device *dev, unsigned int *capabilities) caps = cap.capabilities & V4L2_CAP_DEVICE_CAPS ? cap.device_caps : cap.capabilities; - printf("Device `%s' on `%s' is a video %s (%s mplanes) device.\n", - cap.card, cap.bus_info, + printf("Device `%s' on `%s' (driver '%s') is a video %s (%s mplanes) device.\n", + cap.card, cap.bus_info, cap.driver, caps & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_CAPTURE) ? "capture" : "output", caps & (V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_VIDEO_OUTPUT_MPLANE) ? "with" : "without"); -- cgit v1.2.3