From e0c3675c37e3077320c60b2e7d7dd76db1c0aa9b Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 24 Dec 2016 14:22:19 +0000 Subject: [PATCH] v4l2: cast pointers to kernel_ureg_t instead of long * v4l2.c (print_v4l2_ext_control): Cast v4l2_ext_control.string pointer to kernel_ureg_t instead of long. --- v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v4l2.c b/v4l2.c index 78226e4a..d4a740d4 100644 --- a/v4l2.c +++ b/v4l2.c @@ -663,7 +663,7 @@ print_v4l2_ext_control(struct tcb *tcp, void *elem_buf, size_t elem_size, void * tprintf(", size=%u", p->size); if (p->size > 0) { tprints(", string="); - printstr(tcp, (long) p->string, p->size); + printstr(tcp, (kernel_ureg_t) p->string, p->size); } else # endif tprintf(", value=%d, value64=%" PRId64, p->value, (int64_t) p->value64); -- 2.40.0