[PATCH 1/2] v4l2: add all printings to print_v4l2_format
Dmitry V. Levin
ldv at altlinux.org
Wed Apr 12 02:25:33 UTC 2017
On Mon, Apr 10, 2017 at 01:45:01PM +0300, Edgar Kaziahmedov wrote:
[...]
> + /* since Linux 3.15 */
> #if HAVE_DECL_V4L2_BUF_TYPE_SDR_CAPTURE
> case V4L2_BUF_TYPE_SDR_CAPTURE:
> - case V4L2_BUF_TYPE_SDR_OUTPUT:
> tprints(prefix);
> - tprints("fmt.sdr={???}");
> + tprints("fmt.sdr={pixelformat=");
> + print_pixelformat(f->fmt.sdr.pixelformat);
> + tprintf(", buffersize=%u}",
> + f->fmt.sdr.buffersize);
struct v4l2_sdr_format.buffersize was introduced by commit
v3.17-rc1~112^2~230, on earlier kernels it turns into a syntax error:
v4l2.c: In function 'print_v4l2_format_fmt':
v4l2.c:343:14: error: 'const struct <anonymous>' has no member named 'buffersize'
--
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/20170412/fec5a493/attachment.bin>
More information about the Strace-devel
mailing list