cmocka: introduce LargestIntegralTypePrintfUnsignedFormat modifier
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 19 Jul 2014 17:51:18 +0000 (18:51 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 23 Jul 2014 05:40:01 +0000 (07:40 +0200)
commit8642ef21b07e025a9aa117867811a725e2fb597e
tree3bb65365111a379cb4542e1f636d427e1bf9ae7d
parent61b2b557951a88441a88e37bb0014e158cc8a14d
cmocka: introduce LargestIntegralTypePrintfUnsignedFormat modifier

The modifier is almost identical to LargestIntegralTypePrintfFormat
in terms that it handles 64bit integer values, but unlike the latter
it prints them as unsigned value.

Behind the scenes it uses %I64u for windows, and %llu otherwise.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
include/cmocka.h
src/cmocka.c