[PATCH v4 07/11] netlink: decode AF_SMC smc_diag_msg attributes
Dmitry V. Levin
ldv at altlinux.org
Mon Jul 10 10:46:44 UTC 2017
On Thu, Jul 06, 2017 at 09:57:33AM +0800, JingPiao Chen wrote:
> * netlink_sock_diag.c: Include "xlat/smc_link_group_roles.h".
> (decode_smc_diag_conninfo, decode_smc_diag_lgrinfo): New functions.
> (smc_diag_msg_nla_decoders): New array.
> (decode_smc_diag_msg): Use it.
> * linux/smc_diag.h (smc_diag_cursor, smc_diag_conninfo
> smc_diag_linkinfo, smc_diag_lgrinfo): New structures.
> * xlat/smc_link_group_roles.in: New file.
Applied, thanks.
[...]
> +#define PRINT_FIELD_SMC_DIAG_CONNINFO_FLAGS(prefix_, where_, field_) \
> + tprintf("%s%s=%#0*x", \
> + (prefix_), #field_, \
> + (int) sizeof(where_).field_, (where_).field_) \
This had to be "sizeof(where_).field_ * 2". I subsequently replaced
PRINT_FIELD_SMC_DIAG_CONNINFO_FLAGS with PRINT_FIELD_0X.
--
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/20170710/4fe54fcd/attachment.bin>
More information about the Strace-devel
mailing list