From patchwork Mon Jul 17 22:03:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 9846397 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 D2E4860212 for ; Mon, 17 Jul 2017 22:04:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B58326E54 for ; Mon, 17 Jul 2017 22:04:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0048F26E76; Mon, 17 Jul 2017 22:04:00 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 8CCA126E54 for ; Mon, 17 Jul 2017 22:03:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751358AbdGQWD6 (ORCPT ); Mon, 17 Jul 2017 18:03:58 -0400 Received: from smtp-4.sys.kth.se ([130.237.48.193]:36084 "EHLO smtp-4.sys.kth.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbdGQWD6 (ORCPT ); Mon, 17 Jul 2017 18:03:58 -0400 Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 14055911; Tue, 18 Jul 2017 00:03:56 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cKJTyNzO0s_9; Tue, 18 Jul 2017 00:03:55 +0200 (CEST) X-KTH-Auth: niso [89.233.230.99] X-KTH-mail-from: niklas.soderlund@ragnatech.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id E01252561; Tue, 18 Jul 2017 00:03:53 +0200 (CEST) From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= To: Hans Verkuil Cc: linux-media@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH] v4l2-compliance: fix warning in buffer::check Date: Tue, 18 Jul 2017 00:03:47 +0200 Message-Id: <20170717220347.11312-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.13.1 MIME-Version: 1.0 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 From: Niklas Söderlund The warning don't match the condition which triggers it, fix that. Signed-off-by: Niklas Söderlund --- Hi Hans, Found this typo when investigating ALTERNATE support on R-Car VIN driver. Turns out that field format is a bit tricker then I first thought to support :-) utils/v4l2-compliance/v4l2-test-buffers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp index 62baad76be455a86..2eeacdad31339e81 100644 --- a/utils/v4l2-compliance/v4l2-test-buffers.cpp +++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp @@ -303,7 +303,7 @@ int buffer::check(unsigned type, unsigned memory, unsigned index, if (seq.field_nr) { if ((int)g_sequence() != seq.last_seq) warn("got sequence number %u, expected %u\n", - g_sequence(), seq.last_seq + 1); + g_sequence(), seq.last_seq); } else { fail_on_test((int)g_sequence() == seq.last_seq + 1); if ((int)g_sequence() != seq.last_seq + 1)