[PATCH 2/2] tests: new test cases for ioctl_v4l2
Edgar Kaziahmedov
edos at linux.com
Wed Apr 12 06:41:36 UTC 2017
On Wed, 12 Apr 2017 05:23:13 +0300
"Dmitry V. Levin" <ldv at altlinux.org> wrote:
> On Mon, Apr 10, 2017 at 01:45:02PM +0300, Edgar Kaziahmedov wrote:
> [...]
> > +static void
> > +_print_ioctl_v4l2(struct v4l2_format *const f,
> > + const char* request, const unsigned int buf_type,
> > + const char* buf_type_string)
>
> Identifiers starting with underscore are reserved for the
> implementation, please use a different name that begins with a [a-z]
> symbol.
>
> [...]
> > +#if HAVE_DECL_V4L2_BUF_TYPE_SDR_CAPTURE
> > + case V4L2_BUF_TYPE_SDR_CAPTURE: {
> > + printf("ioctl(-1, %s, {type=%s"
> > + ",
> > fmt.sdr={pixelformat=v4l2_fourcc('\\x%x', '\\x%x',"
> > + " '\\x%x', '\\x%x'), buffersize=%u}}) = -1
> > EBADF (%m)\n",
> > + request,
> > + buf_type_string,
> > + cc0(magic), cc1(magic), cc2(magic),
> > cc3(magic),
> > + f->fmt.sdr.buffersize);
> > + break;
> > +#endif
> > + }
>
> This turns into a syntax error when V4L2_BUF_TYPE_SDR_CAPTURE is not
> defined:
>
> ioctl_v4l2.c:304:1: error: expected identifier or '(' before '}' token
>
>
Thank you, I will fix it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170412/59818d6b/attachment.bin>
More information about the Strace-devel
mailing list