Skip to contentSkip to conversation

v4l2-compliance: fix warning in buffer::check

PATCH New Niklas Söderlund 1 participant 1 message Jul 17, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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.

---

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
index 62baad76be455a86..2eeacdad31339e81 100644
@@ -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