]> granicus.if.org Git - strace/commit
v4l2: use uintmax_t for times
authorMike Frysinger <vapier@gentoo.org>
Thu, 26 Feb 2015 05:57:18 +0000 (00:57 -0500)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 26 Feb 2015 20:00:03 +0000 (20:00 +0000)
commitbfe6d04d9c73de1f3fd5b28d115fa80202fd1776
tree139d7ee3557c981c1a419de71df1d436db1685e1
parentbf8dfe8aaf6671fbca809ba51c39f67a24d198dc
v4l2: use uintmax_t for times

There is no guarantee that the backing value for the various time fields
are ints or longs which makes printfs annoying.  Lets cast them to the
uintmax_t type so we can use the j flag and not worry about truncation.

* v4l2.c (v4l2_ioctl): Use j and uintmax_t when printing tv_sec/tv_usec.
v4l2.c