[PATCH v7 10/14] v4l2: Print out the 64-bit timestamp if we have a 64-bit timesize

Alistair Francis alistair.francis at wdc.com
Fri Apr 17 16:47:20 UTC 2020


Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
 v4l2.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/v4l2.c b/v4l2.c
index a820f8c3..51460873 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -488,7 +488,11 @@ print_v4l2_buffer(struct tcb *const tcp, const unsigned int code,
 		print_v4l2_buffer_flags(b.flags);
 		if (code == VIDIOC_DQBUF) {
 			tprints(", timestamp=");
+#if ARCH_TIMESIZE == 64
+			MPERS_FUNC_NAME(print_timeval64_data_size)(&b.timestamp, sizeof(b.timestamp));
+#else
 			MPERS_FUNC_NAME(print_struct_timeval)(&b.timestamp);
+#endif
 		}
 		tprints(", ...");
 	}
-- 
2.26.0



More information about the Strace-devel mailing list