[PATCH 2/2] v4l2-ctrls: fix compiler warning

2014-07-17 Thread Hans Verkuil
Fixed a compiler warning in v4l_print_query_ext_ctrl() due to the change from
dims[8] to dims[4].

Signed-off-by: Hans Verkuil 

diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c 
b/drivers/media/v4l2-core/v4l2-ioctl.c
index c38a620..96bc117 100644
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
@@ -531,13 +531,12 @@ static void v4l_print_query_ext_ctrl(const void *arg, 
bool write_only)
 
pr_cont("id=0x%x, type=%d, name=%.*s, min/max=%lld/%lld, "
"step=%lld, default=%lld, flags=0x%08x, elem_size=%u, elems=%u, 
"
-   "nr_of_dims=%u, dims=%u,%u,%u,%u,%u,%u,%u,%u\n",
+   "nr_of_dims=%u, dims=%u,%u,%u,%u\n",
p->id, p->type, (int)sizeof(p->name), p->name,
p->minimum, p->maximum,
p->step, p->default_value, p->flags,
p->elem_size, p->elems, p->nr_of_dims,
-   p->dims[0], p->dims[1], p->dims[2], p->dims[3],
-   p->dims[4], p->dims[5], p->dims[6], p->dims[7]);
+   p->dims[0], p->dims[1], p->dims[2], p->dims[3]);
 }
 
 static void v4l_print_querymenu(const void *arg, bool write_only)
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] v4l2-ctrls: fix compiler warning

2014-07-18 Thread Sakari Ailus
On Thu, Jul 17, 2014 at 03:48:43PM +0200, Hans Verkuil wrote:
> Fixed a compiler warning in v4l_print_query_ext_ctrl() due to the change from
> dims[8] to dims[4].
> 
> Signed-off-by: Hans Verkuil 

For both:

Acked-by: Sakari Ailus 

-- 
Sakari Ailus
e-mail: sakari.ai...@iki.fi XMPP: sai...@retiisi.org.uk
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html