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
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
