aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-15 16:36:11 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-12-15 16:36:11 +0100
commitf1b037d3aa66ad3891ab826813d8513093435c6a (patch)
tree54065f9e1d45576cf80083f256abf78e33cbcd12 /utils/v4l2-ctl/v4l2-ctl-streaming.cpp
parent47b8ded87e264e27d53c897e176784e4a688aaf9 (diff)
v4l2-ctl/compliance: fix 32-bit compiler warnings
Fix a few 32-bit compiler warnings. Most are for the case where a 32-bit application uses a 64-bit time_t (i.e. is Y2038-proof). Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-ctl/v4l2-ctl-streaming.cpp')
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-streaming.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 47addc41..fb65fed3 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -509,8 +509,9 @@ static void print_buffer(FILE *f, struct v4l2_buffer &buf)
fprintf(f, "\tSequence : %u\n", buf.sequence);
fprintf(f, "\tLength : %u\n", buf.length);
fprintf(f, "\tBytesused: %u\n", buf.bytesused);
- fprintf(f, "\tTimestamp: %lu.%06lus (%s, %s)\n", buf.timestamp.tv_sec, buf.timestamp.tv_usec,
- timestamp_type2s(buf.flags).c_str(), timestamp_src2s(buf.flags).c_str());
+ fprintf(f, "\tTimestamp: %llu.%06llus (%s, %s)\n",
+ (__u64)buf.timestamp.tv_sec, (__u64)buf.timestamp.tv_usec,
+ timestamp_type2s(buf.flags).c_str(), timestamp_src2s(buf.flags).c_str());
if (buf.flags & V4L2_BUF_FLAG_TIMECODE) {
static const int fps_types[] = { 0, 24, 25, 30, 50, 60 };
int fps = buf.timecode.type;

Privacy Policy