[PATCH] v4l2: VIDIOC_CROPCAP: add missing braces around arg printout.

Philippe De Muyter phdm at macqel.be
Sun Apr 26 13:52:48 UTC 2015


* v4l2.c (v4l2_ioctl): case VIDIOC_CROPCAP: add missing braces around arg
printout..
---
 v4l2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/v4l2.c b/v4l2.c
index 2a3a983..de48064 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -558,12 +558,12 @@ 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),
+			"pixelaspect=" FMT_FRACT "}", ARGS_RECT(c.bounds),
 			ARGS_RECT(c.defrect), ARGS_FRACT(c.pixelaspect));
 		return 1;
 	}
-- 
1.8.4.5





More information about the Strace-devel mailing list