[media] v4l2-ioctl.c: fix inverted condition
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 21 Sep 2014 12:09:58 +0000 (09:09 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 19:13:45 +0000 (16:13 -0300)
v4l_print_ext_controls() would print the 'size' if it was 0 and
'value' if size was non-zero, but it should have been the other
way around.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-ioctl.c

index 46f4c0413d7d9122a208bb37dfd96baef77ff7ed..9ccb19a435ef7a04a7d125af5a5b86c3b130a79d 100644 (file)
@@ -562,7 +562,7 @@ static void v4l_print_ext_controls(const void *arg, bool write_only)
        pr_cont("class=0x%x, count=%d, error_idx=%d",
                        p->ctrl_class, p->count, p->error_idx);
        for (i = 0; i < p->count; i++) {
-               if (p->controls[i].size)
+               if (!p->controls[i].size)
                        pr_cont(", id/val=0x%x/0x%x",
                                p->controls[i].id, p->controls[i].value);
                else