Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp467805pxb; Thu, 14 Jan 2021 10:08:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIXZVleKwbj3/SPvjDwj7uuON6jHdsQko9XUPV27PXtqDYRFfBK1KZMYiFchzHsYdJUiyd X-Received: by 2002:a17:906:4985:: with SMTP id p5mr6220408eju.513.1610647698069; Thu, 14 Jan 2021 10:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610647698; cv=none; d=google.com; s=arc-20160816; b=z3jeeKk3pb34UNCY4ky1dyK82/tFmEmMXhEZisKhnl5Sk6EBAVcagBJtELhmOPIffl tTzT3OYPTSKVOlaWAaFe9y/oeD0GKLLfLOL9buEeN8fpC0y3dBDcw3u9Pzg3dSLUFt8R ODYI5dwYsDoAAldq5ms8BV9xQbNW0HKX79BH2AHz4N6hwkESgQUrKkVjVld69HIp6492 4FD2Nv80p2jRC6kZ+eS7DhAx6R0V+ksQyQbvWoplKvMx+KNv2dlr1ofrOU3/YG7erIZu HimYlGoSLzBowEqEwCPDMAx43eH0s8EOMK6abii5ZmXY55gIRK4NtcKcinq0WBYyft9j Aztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=v6Mtdno+5VS/F2BZ0NjMvNOYlAu1zPlH43/l/QSeDaI=; b=chzbAdi9Q9mUCNRcTym+3oMEATuVmsCzwYW4pUEZdNxl2x4tG5GRy9PtZuTraWRRE7 KGFICtRGQs5PXyD43MkuOJV6CILJxP4ZMST1TJntLvcBfIN4Cr6bmXC6EjUkxTuxrg0S mhIb9lvLLqrdnLtj02E4HdreTF3LJzv39vR/cdp8t3swhWpoDXq4U8dE9i3JjZm4ydDc 7WqLh+dp++Kspm+ZaSltsUPnHmqMFicWpBvdEOiY7Hm2g5p69W3qb5+Zi1ZG5YCk+ljh n8HPtb+XmZJWxq2xPohdZNHNvuHwLc9pgZIjIK/FmhO8ypKuQn/N1Cv9Eam+yaHwqLod eVcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt2si864127edb.89.2021.01.14.10.07.53; Thu, 14 Jan 2021 10:08:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729471AbhANSF7 (ORCPT + 99 others); Thu, 14 Jan 2021 13:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729449AbhANSFv (ORCPT ); Thu, 14 Jan 2021 13:05:51 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C71FC061757; Thu, 14 Jan 2021 10:05:07 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 50DCB1F45C37 From: Helen Koike To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, mchehab@kernel.org, hans.verkuil@cisco.com, kernel@collabora.com, linux-kernel@vger.kernel.org, tfiga@chromium.org Subject: [PATCH 1/3] media: v4l2-ioctl: print capabilities in v4l_print_create_buffers() Date: Thu, 14 Jan 2021 15:01:47 -0300 Message-Id: <20210114180149.1755892-2-helen.koike@collabora.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210114180149.1755892-1-helen.koike@collabora.com> References: <20210114180149.1755892-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Print capabilities field from struct v4l2_create_buffers for better debugging. Signed-off-by: Helen Koike --- drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 3198abdd538c..848286a284f6 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -518,9 +518,9 @@ static void v4l_print_create_buffers(const void *arg, bool write_only) { const struct v4l2_create_buffers *p = arg; - pr_cont("index=%d, count=%d, memory=%s, ", - p->index, p->count, - prt_names(p->memory, v4l2_memory_names)); + pr_cont("index=%d, count=%d, memory=%s, capabilities=0x%08x, ", + p->index, p->count, prt_names(p->memory, v4l2_memory_names), + p->capabilities); v4l_print_format(&p->format, write_only); } -- 2.29.2