diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2018-05-18 17:38:43 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-06 15:10:37 +0000 |
commit | f29c4f13190e40df66e5001752db7d436fbc4ad1 (patch) | |
tree | b98ad1c0bbe4e2ad76cf8f94bcc3c71e9d4cf876 /nlattr.h | |
parent | fd0cd658cc150992669f14ce2b4536c4f7f488e1 (diff) | |
download | strace-f29c4f13190e40df66e5001752db7d436fbc4ad1.tar.gz |
nlattr: add unsigned int decoders that print in hex form
* nlattr.h (DECL_NLA(x8), DECL_NLA(x16), DECL_NLA(x32), DECL_NLA(x64)):
New declarations.
* nlattr.c (DECODE_NLA_INTEGER(x8, uint8_t, "%#" PRIx8),
DECODE_NLA_INTEGER(x16, uint16_t, "%#" PRIx16),
DECODE_NLA_INTEGER(x32, uint32_t, "%#" PRIx32),
DECODE_NLA_INTEGER(x64, uint64_t, "%#" PRIx64)): New decoders.
Diffstat (limited to 'nlattr.h')
-rw-r--r-- | nlattr.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -67,6 +67,10 @@ decode_nla_ ## name(struct tcb *, kernel_ulong_t addr, \ unsigned int len, const void *) \ /* End of DECL_NLA definition. */ +DECL_NLA(x8); +DECL_NLA(x16); +DECL_NLA(x32); +DECL_NLA(x64); DECL_NLA(u8); DECL_NLA(u16); DECL_NLA(u32); |