From patchwork Fri Sep 8 15:47:10 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: 9944593 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 A88EF60224 for ; Fri, 8 Sep 2017 15:48:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE4B28800 for ; Fri, 8 Sep 2017 15:48:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82C4228802; Fri, 8 Sep 2017 15:48:07 +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=unavailable 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 49ACE28800 for ; Fri, 8 Sep 2017 15:48:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbdIHPrQ (ORCPT ); Fri, 8 Sep 2017 11:47:16 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35868 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754731AbdIHPrP (ORCPT ); Fri, 8 Sep 2017 11:47:15 -0400 Received: by mail-lf0-f65.google.com with SMTP id l196so1274711lfl.3; Fri, 08 Sep 2017 08:47:14 -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=34GQGM+oVgNKhFQNhYA49mGvb8lB/NGBd2b8BnLEBNM=; b=pmq33gPpg8aIlHY78iz9zY337ujqX6cMDndwTJ3/WFO4rYri89kqFUi9RmhkMVtZPl gM7S4WwiSi85z5U3YzFnnzvjmxAfkwHh7S/GpVmRuPM5vcsP5+DK9YC+qKtATZk5BsKI FGnQEWRaBpDOD02wcxuFgSmiWJSiXeb0eWxMJZ/2g92Snts5gAF+d8+1Y00Ec3idXDdq 6ZZ9KNYq6iufh2VVLVPAZqS0L9gJBUKSMvU+TbT2Vxh5vgNuJ8dWxs7XpnaKEQSjSAqh 6ITbA20kNrw5hpQgmNJ+px9HI0KxT8qlx73t051/Q96yBxmi/WgObXVbk/3bD/Nvj4hY W4nQ== 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=34GQGM+oVgNKhFQNhYA49mGvb8lB/NGBd2b8BnLEBNM=; b=kZd2yHExEyWTmsBUOutknUfhBacjV5oyBpv4hUaris3X+Bgwiqq4FYplSKSFPYO3xV itUQRRntEzKajIjcprmApdBoH3Gq/UpTbGdgFZ6EoDpzi9AAdUac6snLQSbcQaHfGh+U hjDuphOa5zsYaWI/Blpv53jNEXV9QRsGgQDa1DY6kjGpdmBGZhZtqIF6ZV8eeTO1IJli ysr+zRa6iduAyB2W0foJ4bnM8fEn55xjQIDudz+jSoFBtDQ+HEJj0fugvcTHjPQ8JFsz lqy+nYxbskJdbgZ6nGRgJI5DeC0qI/BFkWEyTyfij6Jplc1HknPzb7AM9q2jDNdM04gI IMvw== X-Gm-Message-State: AHPjjUihwSYxu4WHzeF9veEf3nN5F0rt0gw7/x4HgmIQjtdqVTtiN8qi jrjo1RX3N+yDMg== X-Google-Smtp-Source: AOwi7QBbuKEfZvSIYyQBm84i1TY+GGeqqVlXhdiTRV8Lq/jEgvJQRHsIsSfZYV8Bybiv08C1WFPSug== X-Received: by 10.25.16.87 with SMTP id f84mr1057611lfi.172.1504885633454; Fri, 08 Sep 2017 08:47:13 -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 a78sm382792ljf.13.2017.09.08.08.47.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Sep 2017 08:47:12 -0700 (PDT) From: Ricardo Ribalda Delgado To: 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] v4l-ioctl: Fix typo on v4l_print_frmsizeenum Date: Fri, 8 Sep 2017 17:47:10 +0200 Message-Id: <20170908154710.2115-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 --- 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 drivers/media/v4l2-core/v4l2-ioctl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index b60a6b0841d1..79614992ee21 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -730,9 +730,12 @@ 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 */