]> granicus.if.org Git - strace/commitdiff
v4l2: VIDIOC_CROPCAP: add missing braces around arg printout
authorPhilippe De Muyter <phdm@macqel.be>
Tue, 19 May 2015 21:54:21 +0000 (23:54 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 May 2015 22:31:10 +0000 (22:31 +0000)
* v4l2.c (v4l2_ioctl): case VIDIOC_CROPCAP: add missing braces around arg
printout.

v4l2.c

diff --git a/v4l2.c b/v4l2.c
index 2a3a98396fc867969958dab44393426f780dec2b..f04d1f102416717ad2a1deb87140b4c74d964bbb 100644 (file)
--- a/v4l2.c
+++ b/v4l2.c
@@ -558,13 +558,13 @@ v4l2_ioctl(struct tcb *tcp, const unsigned int code, long arg)
 
                if (entering(tcp) || umove(tcp, arg, &c) < 0)
                        return 0;
-               tprints(", type=");
+               tprints(", {type=");
                printxval(v4l2_buf_types, c.type, "V4L2_BUF_TYPE_???");
-               if (syserror(tcp))
-                       return 1;
-               tprintf(", bounds=" FMT_RECT ", defrect=" FMT_RECT ", "
-                       "pixelaspect=" FMT_FRACT, ARGS_RECT(c.bounds),
-                       ARGS_RECT(c.defrect), ARGS_FRACT(c.pixelaspect));
+               if (!syserror(tcp))
+                       tprintf(", bounds=" FMT_RECT ", defrect=" FMT_RECT ", "
+                               "pixelaspect=" FMT_FRACT, ARGS_RECT(c.bounds),
+                               ARGS_RECT(c.defrect), ARGS_FRACT(c.pixelaspect));
+               tprints("}");
                return 1;
        }