v4l2-compliance: fix warning in buffer::check
PATCH 1/1 v4l2-compliance: fix warning in buffer::check
From: Niklas Söderlund <[email protected]>
The warning don't match the condition which triggers it, fix that.
Signed-off-by Niklas Söderlund <[email protected]>
---
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(-)
utils/v4l2-compliance/v4l2-test-buffers.cpp +1 -1
@@ -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)
Signature · 1 line
2.13.0