summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-05-13 21:15:18 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-05-13 21:16:31 +0300
commit005ab78f9748bd503ad9b3f2f38caf8d43c9ed46 (patch)
treedad1e5d142a81995502aba128741a6918d26f638
parent0a979e390ed828a85d26f6b311b4ab14ca681882 (diff)
Print driver name when querying capabilities
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--yavta.c4
1 files 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");