path: root/utils
diff options
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-14 11:37:52 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-14 11:37:52 -0300
commit22a3113e373d0845fee555f1818c81d2fdc9fc20 (patch)
tree77152626a3fd1d155c85d342da371f2b0a231aa0 /utils
parenta919d8cf8a8147bca388c1a41f706f4b4c6f5023 (diff)
v4l2-test-input-output: improve warning message
The message produced when v4l2_input.audioset leads to a wrong diagnosis. Currently, it prints a message saying that there's no audio inputs, but, in the sequence, it lists 1 audio input: test VIDIOC_G/S/ENUMINPUT: OK fail: v4l2-test-input-output.cpp(520): No audio inputs, but G_AUDIO did not return ENOTTY or EINVAL fail: v4l2-test-input-output.cpp(564): invalid audioset for input 0 test VIDIOC_G/S_AUDIO: FAIL Inputs: 2 Audio Inputs: 1 Tuners: 1 Fix the message to not lead the developer to try addressing a different problem. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'utils')
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-input-output.cpp b/utils/v4l2-compliance/v4l2-test-input-output.cpp
index 3b569689..4c7327f0 100644
--- a/utils/v4l2-compliance/v4l2-test-input-output.cpp
+++ b/utils/v4l2-compliance/v4l2-test-input-output.cpp
@@ -517,7 +517,7 @@ static int checkInputAudioSet(struct node *node, __u32 audioset)
ret = doioctl(node, VIDIOC_G_AUDIO, &input);
if (audioset == 0 && ret != ENOTTY && ret != EINVAL)
- return fail("No audio inputs, but G_AUDIO did not return ENOTTY or EINVAL\n");
+ return fail("No audioset, but G_AUDIO did not return ENOTTY or EINVAL\n");
if (audioset) {
if (ret)
return fail("Audio inputs, but G_AUDIO returned an error\n");

Privacy Policy