From patchwork Mon Dec 24 12:55:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1908981 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 13B59400EC for ; Mon, 24 Dec 2012 12:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752290Ab2LXMyZ (ORCPT ); Mon, 24 Dec 2012 07:54:25 -0500 Received: from perceval.ideasonboard.com ([95.142.166.194]:35728 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151Ab2LXMyX (ORCPT ); Mon, 24 Dec 2012 07:54:23 -0500 Received: from avalon.ideasonboard.com (unknown [91.178.87.251]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3241F35A82; Mon, 24 Dec 2012 13:54:22 +0100 (CET) From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: hans.verkuil@cisco.com Subject: [PATCH v2 2/2] v4l2-compliance: Print invalid error_idx values in control tests Date: Mon, 24 Dec 2012 13:55:42 +0100 Message-Id: <1356353742-17327-2-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1356353742-17327-1-git-send-email-laurent.pinchart@ideasonboard.com> References: <1356353742-17327-1-git-send-email-laurent.pinchart@ideasonboard.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Laurent Pinchart --- utils/v4l2-compliance/v4l2-test-controls.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/v4l2-compliance/v4l2-test-controls.cpp b/utils/v4l2-compliance/v4l2-test-controls.cpp index 2e03551..70b8aba 100644 --- a/utils/v4l2-compliance/v4l2-test-controls.cpp +++ b/utils/v4l2-compliance/v4l2-test-controls.cpp @@ -614,7 +614,7 @@ int testExtendedControls(struct node *node) if (ret != EINVAL) return fail("g_ext_ctrls accepted invalid control ID\n"); if (ctrls.error_idx != ctrls.count) - return fail("g_ext_ctrls(0) invalid error_idx\n"); + return fail("g_ext_ctrls(0) invalid error_idx %u\n", ctrls.error_idx); ctrl.id = 0; ctrl.size = 0; ctrl.value = 0; @@ -622,12 +622,12 @@ int testExtendedControls(struct node *node) if (ret != EINVAL) return fail("try_ext_ctrls accepted invalid control ID\n"); if (ctrls.error_idx != 0) - return fail("try_ext_ctrls(0) invalid error_idx\n"); + return fail("try_ext_ctrls(0) invalid error_idx %u\n", ctrls.error_idx); ret = doioctl(node, VIDIOC_S_EXT_CTRLS, &ctrls); if (ret != EINVAL) return fail("s_ext_ctrls accepted invalid control ID\n"); if (ctrls.error_idx != ctrls.count) - return fail("s_ext_ctrls(0) invalid error_idx\n"); + return fail("s_ext_ctrls(0) invalid error_idx %u\n", ctrls.error_idx); for (iter = node->controls.begin(); iter != node->controls.end(); ++iter) { struct v4l2_ext_control ctrl;