From c4df9505cb1a6af6c1e7b12246b3d02f9e64597d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 26 Sep 2013 21:57:44 +0200 Subject: Print more detailed v4l parse error messages The following errors usually resulted in the same 'Unable to parse format' message: - syntax error in format description - the requested pixel code isn't supported Add more detailed error messages to give the user a clue what is going wrong. Signed-off-by: Laurent Pinchart --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 140f9d7..4a27c8c 100644 --- a/src/main.c +++ b/src/main.c @@ -417,7 +417,7 @@ int main(int argc, char **argv) ret = v4l2_subdev_parse_setup_formats(media, media_opts.formats); if (ret) { - printf("Unable to parse format: %s (%d)\n", + printf("Unable to setup formats: %s (%d)\n", strerror(-ret), -ret); goto out; } -- cgit v1.2.3