diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-09-29 10:37:29 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-09-29 10:37:29 +0200 |
commit | f3c7150307afd2a9fff3806580ba1b283a13654b (patch) | |
tree | 9fd7e1239a9256df85a68b185aaceacccf614ccc /yavta.c | |
parent | 0a0b2d15b73b68d2e6c8c2d9b1aef2ad61555128 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |