summaryrefslogtreecommitdiff
path: root/src/mediactl.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 22:16:24 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 23:49:27 +0200
commit87f58c2ed885d636229f7209fde883058433a1ce (patch)
tree92af07c4965a7a60469aa409765019d1e2d18a16 /src/mediactl.c
parentc4df9505cb1a6af6c1e7b12246b3d02f9e64597d (diff)
Print v4l parser position on error
Most parser functions take a **endp argument to indicate the caller where parsing has stopped. This is currently only used after parsing something successfully. This patch sets **endp to the erroneous position in the error case and prints its position after an error has occured. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/mediactl.c')
-rw-r--r--src/mediactl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mediactl.c b/src/mediactl.c
index b22fbdf..57cf86b 100644
--- a/src/mediactl.c
+++ b/src/mediactl.c
@@ -677,8 +677,8 @@ int media_parse_setup_link(struct media_device *media,
return media_setup_link(media, link->source, link->sink, flags);
}
-static void media_print_streampos(struct media_device *media, const char *p,
- const char *end)
+void media_print_streampos(struct media_device *media, const char *p,
+ const char *end)
{
int pos;