kunit: mock: swapped out fixed width integer formatters
The kernel does not yet support fixed width integer formatters, this
removes them until support can be provided.
Change-Id: I1667565930b47f33686cc2fc0eb1b5b2a5776157
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
diff --git a/test/common-mocks.c b/test/common-mocks.c
index 5775619..ed061b1 100644
--- a/test/common-mocks.c
+++ b/test/common-mocks.c
@@ -524,10 +524,10 @@
}
static struct mock_param_integer_formatter integer_formatters[] = {
- INTEGER_FORMATTER_INIT(u8, "%PRIu8"),
- INTEGER_FORMATTER_INIT(u16, "%PRIu16"),
- INTEGER_FORMATTER_INIT(u32, "%PRIu32"),
- INTEGER_FORMATTER_INIT(u64, "%PRIu64"),
+ INTEGER_FORMATTER_INIT(u8, "%hhu"),
+ INTEGER_FORMATTER_INIT(u16, "%hu"),
+ INTEGER_FORMATTER_INIT(u32, "%u"),
+ INTEGER_FORMATTER_INIT(u64, "%llu"),
INTEGER_FORMATTER_INIT(char, "%c"),
INTEGER_FORMATTER_INIT(unsigned char, "%hhu"),
INTEGER_FORMATTER_INIT(signed char, "%hhd"),