From: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se>

The warning don't match the condition which triggers it, fix that.

Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se>
---

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)
-- 
2.13.0

Reply via email to