aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-12 15:07:05 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-03-12 15:07:05 (GMT)
commitb6c13019f4879eb3e17b70dd8b4f68559928b0c6 (patch)
tree9382eb4068a3aeb8ab70972d5047f857f29eb984
parent32cf495ff5da24df54936fae3bf0eb91fba77f3a (diff)
v4l2-ctl: show cap/out in print_concise_buffer()
print_concise_buffer() shows buffer information, but not whether it was a capture or output buffer. This is confusing when dealing with m2m devices, so add a 'cap' or 'out' prefix. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 0eda844..860fb68 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -520,7 +520,8 @@ static void print_concise_buffer(FILE *f, cv4l_buffer &buf,
{
static double last_ts;
- fprintf(f, "idx: %*u seq: %6u bytesused: ",
+ fprintf(f, "%s idx: %*u seq: %6u bytesused: ",
+ v4l_type_is_output(buf.g_type()) ? "out" : "cap",
reqbufs_count_cap > 10 ? 2 : 1, buf.g_index(), buf.g_sequence());
bool have_data_offset = false;

Privacy Policy