[PATCH v2 1/3] Add decoding for binder ioctls
Dmitry V. Levin
ldv at altlinux.org
Mon Jun 20 12:16:33 UTC 2016
On Mon, Jun 20, 2016 at 03:07:52PM +0300, Dmitry V. Levin wrote:
> On Sat, Jun 18, 2016 at 07:13:54PM +0200, Antoine Damhet wrote:
[...]
> > + if (_IOC_SIZE(type) > 0) {
> > + tprints("[");
> > + printxval(x, type, str);
> > + tprints(", ");
> > + if (pos + sizeof(type) + _IOC_SIZE(type) <= size)
> > + printstr(tcp, buffer + pos + sizeof(type),
> > + _IOC_SIZE(type));
> > + tprints("]");
>
>
> What's going to be printed when this condition is false?
Also, this object is not an array so let's print it like a structure.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160620/68a05a06/attachment.bin>
More information about the Strace-devel
mailing list