[PATCH 1/2] v4l2: Implement decoding of the remaining V4L2_BUF_TYPE_* types.

Dmitry V. Levin ldv at altlinux.org
Thu Apr 13 23:51:24 UTC 2017


On Fri, Apr 14, 2017 at 02:39:03AM +0300, Edgar Kaziahmedov wrote:
[...]
> +#if HAVE_STRUCT_V4L2_WINDOW_GLOBAL_ALPHA
> +		tprintf(", global_alpha=%#x}", f->fmt.win.global_alpha);
> +#else
> +		tprints("}");
> +#endif

Let's move tprints("}"); to the common code:

#if HAVE_STRUCT_V4L2_WINDOW_GLOBAL_ALPHA
		tprintf(", global_alpha=%#x", f->fmt.win.global_alpha);
#endif
		tprints("}");

> +#if HAVE_STRUCT_V4L2_SDR_FORMAT_BUFFERSIZE
> +		tprintf(", buffersize=%u}",
> +			f->fmt.sdr.buffersize);
> +#else
> +		tprints("}");
>  #endif

Likewise.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170414/bdba7587/attachment.bin>


More information about the Strace-devel mailing list