From patchwork Wed Sep 13 07:35:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 9950577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B3086038F for ; Wed, 13 Sep 2017 07:37:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D08628BF5 for ; Wed, 13 Sep 2017 07:37:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11D2928C3A; Wed, 13 Sep 2017 07:37:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB1C328C1B for ; Wed, 13 Sep 2017 07:37:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751961AbdIMHgR (ORCPT ); Wed, 13 Sep 2017 03:36:17 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:38147 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752021AbdIMHf4 (ORCPT ); Wed, 13 Sep 2017 03:35:56 -0400 Received: by mail-lf0-f68.google.com with SMTP id m199so6360891lfe.5; Wed, 13 Sep 2017 00:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5JX3b3MIMXqbeVvmum9B15trZhcLp1Hrt6aE0moTMvQ=; b=Zlp9IDmuINXnvvJAWNT8ZY9jQQ/3lVIIY0OG5a21VZ7ELFOHiKZ5QK4idF/unvatUq xVKbIcRh0PzmyyzANiyfuCpJk5eBIHOBdh9OmAegj8FdWnM+ipjSKNcMvhFmlpqwq1h9 ctvGeJ0YdiF2DNGldkJeWUwt00iKcCXRVL4907B5dqpC/oVD6jqMe2yyAXUlF/dp7vx4 YtulNXH0JnAumcy8RuxLZlEhchyIWAqzkaaWPP4wLyXNrViJ2FPz6vIg+b4P0OSOClBf F+9atHJczG5YD9zfWSyK0ia8TxgVD5WRXHAwDjhoLMwLBSAZ4ZN6Ll8k4SMgzckUnh3n lamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5JX3b3MIMXqbeVvmum9B15trZhcLp1Hrt6aE0moTMvQ=; b=J8Gpc1Z/8yF8HO9u3IOzOlA1601HGjZZoOVzcdQRgGPJ78SFT+eyzb/voLWksT2Eac d3AiXgXRY4U0GUDDLKs3undJ4/FK62wzpWw+MOyCqZZLhrK1xRayzCn7ccAI3a8ZXZxB TKMWdCBNC7CO1IrViqTrFUPkNR+/2YnGen0Cvr64oO26iDl7kjBOjv456Z2SFfMEBCTE RwEEHaQOAYpIZCwNnj3/Js7C419Xp2iYi+sR409zbEwML8zj7BtMRZAHJ6+za97MPiVz CpIs54j3k/+9W872hC3JMgskQMQEPPh2FOnTozohJOvf9dRTCr5vUR72Nfudpp7YPgzu j6SA== X-Gm-Message-State: AHPjjUiNf4mpeAJ/RmoAPvEI9jBtkPhx5B92wf8LPGyexr0nO2uT1o6E K3tI8Cw1OupSdA== X-Google-Smtp-Source: AOwi7QAXGMCmeTKp/TqphEPNS7ScahAw2/mWC6ecRtbe/H1egrewaKAt7NxshkgdHvJddqvdqTP5kQ== X-Received: by 10.46.86.68 with SMTP id k65mr6183736ljb.28.1505288155070; Wed, 13 Sep 2017 00:35:55 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id u73sm2801298lja.70.2017.09.13.00.35.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Sep 2017 00:35:53 -0700 (PDT) From: Ricardo Ribalda Delgado To: Laurent Pinchart , Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , Sakari Ailus , Tiffany Lin , Wu-Cheng Li , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH v2] v4l-ioctl: Fix typo on v4l_print_frmsizeenum Date: Wed, 13 Sep 2017 09:35:52 +0200 Message-Id: <20170913073552.29806-1-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP max_width and max_height are swap with step_width and step_height. Signed-off-by: Ricardo Ribalda Delgado Acked-by: Sakari Ailus --- Since that this bug has been here for ever. I do not know if we should notify stable or not I have also cut the lines to respect the 80 char limit v2: Suggested by Laurent Pinchart -Fix indentation 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 b60a6b0841d1..0292f327467d 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -730,9 +730,9 @@ static void v4l_print_frmsizeenum(const void *arg, bool write_only) break; case V4L2_FRMSIZE_TYPE_STEPWISE: pr_cont(", min=%ux%u, max=%ux%u, step=%ux%u\n", - p->stepwise.min_width, p->stepwise.min_height, - p->stepwise.step_width, p->stepwise.step_height, - p->stepwise.max_width, p->stepwise.max_height); + p->stepwise.min_width, p->stepwise.min_height, + p->stepwise.max_width, p->stepwise.max_height, + p->stepwise.step_width, p->stepwise.step_height); break; case V4L2_FRMSIZE_TYPE_CONTINUOUS: /* fall through */