From patchwork Mon Aug 26 15:47:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 2849675 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E89AEBF546 for ; Mon, 26 Aug 2013 15:48:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10580203C4 for ; Mon, 26 Aug 2013 15:48:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8B5D5203B5 for ; Mon, 26 Aug 2013 15:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752191Ab3HZPsn (ORCPT ); Mon, 26 Aug 2013 11:48:43 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42594 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909Ab3HZPsn (ORCPT ); Mon, 26 Aug 2013 11:48:43 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MS500KG3AL55060@mailout2.samsung.com> for linux-media@vger.kernel.org; Tue, 27 Aug 2013 00:48:41 +0900 (KST) X-AuditID: cbfee61b-b7f776d0000016c8-6a-521b78d9ea13 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E3.F4.05832.9D87B125; Tue, 27 Aug 2013 00:48:41 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MS5009O5AKWQ270@mmp2.samsung.com>; Tue, 27 Aug 2013 00:48:41 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: m.szyprowski@samsung.com, pawel@osciak.com, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, m.chehab@samsung.com, Sylwester Nawrocki , Kyungmin Park Subject: [PATCH] vb2: Add debug print for the output buffer planes lengths checks Date: Mon, 26 Aug 2013 17:47:53 +0200 Message-id: <1377532073-12864-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t9jQd2bFdJBBl+uqlks+bmLyeJs0xt2 i86JS9gtejZsZbW4uE7eYu2Ru+wWU97+ZLc4/Kad1YHDY8rvjawesztmsno8/vWSzaNvyypG j8+b5AJYo7hsUlJzMstSi/TtErgyTr+7y1bwjb3iwvIXjA2M59m6GDk4JARMJCbNC+5i5AQy xSQu3FsPFObiEBKYzijxeM9iZging0libvdRNpAqNgFDid6jfYwgtoiAvMST3htgHcwCdxkl Tn/YyA6SEBYIlli8/joTiM0ioCqxtPcGM4jNK+Am0bLhH9RmBYk5k2wmMHIvYGRYxSiaWpBc UJyUnmukV5yYW1yal66XnJ+7iREcLM+kdzCuarA4xCjAwajEwxvAJh0kxJpYVlyZe4hRgoNZ SYSXIxUoxJuSWFmVWpQfX1Sak1p8iFGag0VJnPdgq3WgkEB6YklqdmpqQWoRTJaJg1OqgZEx cW2r15zHXD8O1388ODuDK9v0Y9cNNvaEdTFsihdMGML2eTB9OTtjllDJAzVuroTpj2/lzWOc cDx+7+bXglv2NzZ6n/FZPv19gMS/uBz9l5554Sbse14t2Sbb7CMQJPd25o7EmOtBoosjFY6f b2D9WXisu+rkAwFvm7eqYVmndvdXfow7+FOJpTgj0VCLuag4EQAjr/ryEgIAAA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add debug print so it's easier to find any errors resulting from the planes' configuration checks added in commit 8023ed09cb278004a2 "videobuf2-core: Verify planes lengths for output buffers". Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park Acked-by: Laurent Pinchart Acked-by: Marek Szyprowski --- drivers/media/v4l2-core/videobuf2-core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index de0e87f..6bffc96 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -1205,8 +1205,11 @@ static int __buf_prepare(struct vb2_buffer *vb, const struct v4l2_buffer *b) int ret; ret = __verify_length(vb, b); - if (ret < 0) + if (ret < 0) { + dprintk(1, "%s(): plane parameters verification failed: %d\n", + __func__, ret); return ret; + } switch (q->memory) { case V4L2_MEMORY_MMAP: