[PATCH v1] changing mmap flags and memfd_create flags to print abbreviated values under -Xraw
Dmitry V. Levin
ldv at altlinux.org
Tue Nov 27 03:38:21 UTC 2018
On Mon, Nov 26, 2018 at 05:30:06PM -0800, shankarapailoor wrote:
> Hi again!
>
> As a follow up, under -Xraw do you think it is better to just show raw
> values instead of the corresponding function call e.g
> inet_addr("127.0.0.1"), htons, htonl, etc?
Definitely.
> For example, instead of:
>
> bind(3, {sa_family=0x2, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}, 16)
>
> we would have:
>
> bind(3, {sa_family=0x2, sin_port=0, sin_addr=0x0}, 16)
Maybe print sin_addr as %#x?
What do you think is the appropriate raw representation for IPv6 addresses?
--
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/20181127/f7dad6fc/attachment.bin>
More information about the Strace-devel
mailing list