Commit 48e15418 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

media: v4l2-ioctl.c: fix timestamp format

The timestamp uses microseconds, not nanoseconds, so use %06ld instead
of %09ld.
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent bea7515d
...@@ -476,7 +476,7 @@ static void v4l_print_buffer(const void *arg, bool write_only) ...@@ -476,7 +476,7 @@ static void v4l_print_buffer(const void *arg, bool write_only)
const struct v4l2_plane *plane; const struct v4l2_plane *plane;
int i; int i;
pr_cont("%02d:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s", pr_cont("%02d:%02d:%02d.%06ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s",
(int)p->timestamp.tv_sec / 3600, (int)p->timestamp.tv_sec / 3600,
((int)p->timestamp.tv_sec / 60) % 60, ((int)p->timestamp.tv_sec / 60) % 60,
((int)p->timestamp.tv_sec % 60), ((int)p->timestamp.tv_sec % 60),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment