This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: v4l2-compliance: clearly separate the -M device tests Author: Hans Verkuil <hans.verk...@cisco.com> Date: Thu Feb 8 11:03:26 2018 +0100 It was a bit hard to see where one device test ended and another began. Signed-off-by: Hans Verkuil <hans.verk...@cisco.com> utils/v4l2-compliance/v4l2-compliance.cpp | 10 +++++----- utils/v4l2-compliance/v4l2-test-media.cpp | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=8660a3bb8fe1734b530ef2ff889221ec48a04a4b diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp index e7924a3ac1db..376479554446 100644 --- a/utils/v4l2-compliance/v4l2-compliance.cpp +++ b/utils/v4l2-compliance/v4l2-compliance.cpp @@ -636,6 +636,9 @@ void testNode(struct node &node, struct node &expbuf_node, media_type type, struct node node2; struct v4l2_capability vcap; /* list_cap */ + printf("\nCompliance test for device %s%s:\n\n", + node.device, node.g_direct() ? "" : " (using libv4l2)"); + node.is_video = type == MEDIA_TYPE_VIDEO; node.is_vbi = type == MEDIA_TYPE_VBI; node.is_radio = type == MEDIA_TYPE_RADIO; @@ -677,7 +680,7 @@ void testNode(struct node &node, struct node &expbuf_node, media_type type, media_fd = mi_get_media_fd(node.g_fd()); if (node.is_v4l2()) { - printf("\nDriver Info:\n"); + printf("Driver Info:\n"); v4l2_info_capability(vcap); if (!strcmp((const char *)vcap.driver, "vivid")) { @@ -725,12 +728,9 @@ void testNode(struct node &node, struct node &expbuf_node, media_type type, } } - printf("\nCompliance test for device %s%s:\n\n", - node.device, node.g_direct() ? "" : " (using libv4l2)"); - /* Required ioctls */ - printf("Required ioctls:\n"); + printf("\nRequired ioctls:\n"); if (ent_id) printf("\ttest MC information (see 'Media Driver Info' above): %s\n", ok(is_invalid ? -1 : 0)); diff --git a/utils/v4l2-compliance/v4l2-test-media.cpp b/utils/v4l2-compliance/v4l2-test-media.cpp index 2300f0cc283d..7beb908f8a4a 100644 --- a/utils/v4l2-compliance/v4l2-test-media.cpp +++ b/utils/v4l2-compliance/v4l2-test-media.cpp @@ -423,6 +423,9 @@ void walkTopology(struct node &node, struct node &expbuf_node, unsigned frame_co iface.devnode.minor); if (dev.empty()) continue; + + printf("--------------------------------------------------------------------------------\n"); + media_type type = media_detect_type(dev.c_str()); if (type == MEDIA_TYPE_CANT_STAT) { fprintf(stderr, "Cannot open device %s, skipping.\n\n", _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits