aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2017-07-18 00:03:47 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2017-08-20 15:33:03 +0200
commit90fda725e26bc45966211d4231c55c5f671d99fc (patch)
tree60808fccc61dd0c1854a9aaf999e1016e72533f0
parentb1c04ff76502b1530fe1305301cd26d3cfba13f2 (diff)
v4l2-compliance: fix warning in buffer::check
The warning don't match the condition which triggers it, fix that. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 62baad76..2eeacdad 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)

Privacy Policy