summaryrefslogtreecommitdiff
path: root/nlattr.h
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2018-05-18 17:38:43 +0200
committerDmitry V. Levin <ldv@altlinux.org>2018-06-06 15:10:37 +0000
commitf29c4f13190e40df66e5001752db7d436fbc4ad1 (patch)
treeb98ad1c0bbe4e2ad76cf8f94bcc3c71e9d4cf876 /nlattr.h
parentfd0cd658cc150992669f14ce2b4536c4f7f488e1 (diff)
downloadstrace-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nlattr.h b/nlattr.h
index b3d50ce0c..a0ba2c357 100644
--- a/nlattr.h
+++ b/nlattr.h
@@ -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);