aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-08-07 14:13:50 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-08-07 14:13:50 +0200
commit160347d650fc5f62a45a5781ea3e533a14373f40 (patch)
treec8d04ec32f36a5c75eec5e1a693a2f879362a240 /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parent28be49b4e9d72c5866188cf5ba408541c665c921 (diff)
v4l2-ctl: print newline on timeout
If an m2m driver timeouts, then a message with newline was only printed if 'stopped' was false. But if it was true, then there still should have been a newline printed. Do this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-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 470fa766..57eccf2f 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -2302,7 +2302,8 @@ static void stateful_m2m(cv4l_fd &fd, cv4l_queue &in, cv4l_queue &out,
}
if (r == 0) {
if (!stopped)
- fprintf(stderr, "select timeout\n");
+ fprintf(stderr, "select timeout");
+ fprintf(stderr, "\n");
return;
}

Privacy Policy