Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3292597pxy; Sun, 25 Apr 2021 20:39:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIoTXp1Dy2uKRcpeFCYaP6it0g9jUvH3mG5rcSoUo1nE4a6T3hASoR+8CbYHe/1mQUYIew X-Received: by 2002:aa7:cfd0:: with SMTP id r16mr19079493edy.330.1619408346576; Sun, 25 Apr 2021 20:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619408346; cv=none; d=google.com; s=arc-20160816; b=Z56ZtVj2Z3I9bYyXgjgBbn0wU3yP9EXCYkGb4DDuyhxPjIC36ksNJemq2Dzfi8cI+u njpatAC2rOqREalyTB+oXvp8YqWo+qyme6rJT3CNlfnHH4juoCChpuvMUm0gw3rmpOeK Aear3QpELcDgcRetd9s+KnMhOGtQ7f6WB0e5xUAZaBEDEia4dRckdgepZGYF5dqLVGEO tIadfom97SLgj51G7vAiH//rDW1EDUMk+3IVbM/WwalcdUhhjD96UN1LdnVrdQOr4dww +fjCM8vY/xAYd0edrDX4o2ReadZOjTWUy6Ue+ZoL/LnRX8tOCeN2d2arzn2U0NzMKOXZ srKw== 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=7yDo2P1Aw5q1pbjYDc6+fmiDxQTsIbVI/ka0yIdd40I=; b=k6K882x5hzTHTU/VYrEa+JBAH8WhWlHZndTbJ28yccT93Ui9J2ewjhvT8Sk7Ps7B7U sNqpvyT9NRo3xDMMfAwu7I4IA0KwspyKuUuhl/UPyNIvtu4AEjwNfkX6NnGoP5/dqTyJ 3N+7wy4WTM6xjOkNZAUbuc6LUDI/u4fa5FMWlKCci0dha2ULQgWTQWEC5r9jWZKdx0yl RDRiI+tBuU0PGuTWFZJLjRvkabYZdT1B4s3MaanmNoccz2FhW/JGacSRLhz0oLGk4HUe eVmP6Sp5R7pxadKlE6/1J45TlTNU/Dapob/NCww1AmuOPvF5JjZtOUKhe1jUexxXvQaz LFOg== 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 a13si5264660edx.408.2021.04.25.20.38.43; Sun, 25 Apr 2021 20:39:06 -0700 (PDT) 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 S231929AbhDZDhn (ORCPT + 99 others); Sun, 25 Apr 2021 23:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbhDZDhm (ORCPT ); Sun, 25 Apr 2021 23:37:42 -0400 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 1B3B1C061574; Sun, 25 Apr 2021 20:37:02 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 801DB1F41F86 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Jonas Karlman , Hans Verkuil , Nicolas Dufresne , Philipp Zabel , Maxime Ripard , Paul Kocialkowski , Jernej Skrabec , Daniel Almeida , Ezequiel Garcia Subject: [PATCH v6 09/10] media: controls: Log MPEG-2 stateless control in .std_log Date: Mon, 26 Apr 2021 00:35:21 -0300 Message-Id: <20210426033522.69395-10-ezequiel@collabora.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210426033522.69395-1-ezequiel@collabora.com> References: <20210426033522.69395-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simply print the type of the control. Signed-off-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-ctrls.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 6a033102d31b..a693ff8dc3dc 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -1873,6 +1873,15 @@ static void std_log(const struct v4l2_ctrl *ctrl) case V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY: pr_cont("HDR10_MASTERING_DISPLAY"); break; + case V4L2_CTRL_TYPE_MPEG2_QUANTISATION: + pr_cont("MPEG2_QUANTISATION"); + break; + case V4L2_CTRL_TYPE_MPEG2_SEQUENCE: + pr_cont("MPEG2_SEQUENCE"); + break; + case V4L2_CTRL_TYPE_MPEG2_PICTURE: + pr_cont("MPEG2_PICTURE"); + break; default: pr_cont("unknown type %d", ctrl->type); break; -- 2.30.0