summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-09-29 10:37:29 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-09-29 10:37:29 +0200
commitf3c7150307afd2a9fff3806580ba1b283a13654b (patch)
tree9fd7e1239a9256df85a68b185aaceacccf614ccc /yavta.c
parent0a0b2d15b73b68d2e6c8c2d9b1aef2ad61555128 (diff)
Print device bus info when opening the device
To differentiate between identically named devices, print the bus info reported by VIDIOC_QUERYCAP. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yavta.c b/yavta.c
index f8dfed6..7f71fd8 100644
--- a/yavta.c
+++ b/yavta.c
@@ -127,7 +127,7 @@ static int video_open(struct device *dev, const char *devname, int no_query)
return -EINVAL;
}
- printf("Device %s opened: %s.\n", devname, cap.card);
+ printf("Device %s opened: %s (%s).\n", devname, cap.card, cap.bus_info);
} else {
dev->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
printf("Device %s opened.\n", devname);