v4l2: VIDIOC_CROPCAP: add missing braces around arg printout

* v4l2.c (v4l2_ioctl): case VIDIOC_CROPCAP: add missing braces around arg
printout.
This commit is contained in:
Philippe De Muyter
2015-05-19 23:54:21 +02:00
committed by Dmitry V. Levin
parent 7e88896a16
commit 86b4fb5bc5

12
v4l2.c
View File

@ -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;
}