]> granicus.if.org Git - strace/commit
nlattr: add unsigned int decoders that print in hex form
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 18 May 2018 15:38:43 +0000 (17:38 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 6 Jun 2018 15:10:37 +0000 (15:10 +0000)
commitf29c4f13190e40df66e5001752db7d436fbc4ad1
treeb98ad1c0bbe4e2ad76cf8f94bcc3c71e9d4cf876
parentfd0cd658cc150992669f14ce2b4536c4f7f488e1
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.
nlattr.c
nlattr.h