summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 21:57:44 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 23:49:27 +0200
commitc4df9505cb1a6af6c1e7b12246b3d02f9e64597d (patch)
tree869f41a59ab7dc8054a8a887ddd52f673688e0c3 /src/main.c
parent8762373646cfea5549dc80b36b79e0b8a2e43207 (diff)
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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;
}