diff --git a/SingleSource/UnitTests/2020-01-06-coverage-001.c b/SingleSource/UnitTests/2020-01-06-coverage-001.c --- a/SingleSource/UnitTests/2020-01-06-coverage-001.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-001.c @@ -1,5 +1,6 @@ #include #include +#include int32_t *a; uint8_t b = 7; @@ -32,8 +33,8 @@ a = &temp_1; d(); - printf("b = %i\n", b); - printf("x = %i\n", x); + printf("b = %" PRIu8 "\n", b); + printf("x = %" PRIi32 "\n", x); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-002.c b/SingleSource/UnitTests/2020-01-06-coverage-002.c --- a/SingleSource/UnitTests/2020-01-06-coverage-002.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-002.c @@ -1,5 +1,6 @@ #include #include +#include int32_t a, c, e; int8_t b; @@ -65,14 +66,14 @@ a = val_1; z = f(); - printf("a = %i\n", a); - printf("b = %i\n", b); - printf("c = %i\n", c); - printf("d = %i\n", d); - printf("x = %i\n", x); - printf("e = %i\n", e); - printf("z = %li\n", z); - printf("y = %li\n", y); + printf("a = %" PRIi32 "\n", a); + printf("b = %" PRIi8 "\n", b); + printf("c = %" PRIi32 "\n", c); + printf("d = %" PRIi16 "\n", d); + printf("x = %" PRIi32 "\n", x); + printf("e = %" PRIi32 "\n", e); + printf("z = %" PRIi64 "\n", z); + printf("y = %" PRIi64 "\n", y); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-003.c b/SingleSource/UnitTests/2020-01-06-coverage-003.c --- a/SingleSource/UnitTests/2020-01-06-coverage-003.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-003.c @@ -1,5 +1,6 @@ #include #include +#include int8_t a; int32_t x; @@ -17,8 +18,8 @@ a = val_1; b(); - printf("a = %i\n", a); - printf("x = %i\n", x); + printf("a = %" PRIi8 "\n", a); + printf("x = %" PRIi32 "\n", x); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-004.c b/SingleSource/UnitTests/2020-01-06-coverage-004.c --- a/SingleSource/UnitTests/2020-01-06-coverage-004.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-004.c @@ -1,5 +1,6 @@ #include #include +#include int32_t a, b; @@ -56,12 +57,12 @@ j(); y = h(h_call_argument_1); - printf("a = %i\n", a); - printf("b = %i\n", b); - printf("d.c = %i\n", d.c); - printf("y = %li\n", y); - printf("h_call_argument_1 = %i\n", h_call_argument_1); - printf("x = %li\n", x); + printf("a = %" PRIi32 "\n", a); + printf("b = %" PRIi32 "\n", b); + printf("d.c = %" PRIu16 "\n", d.c); + printf("y = %" PRIi64 "\n", y); + printf("h_call_argument_1 = %" PRIi32 "\n", h_call_argument_1); + printf("x = %" PRIi64 "\n", x); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-005.c b/SingleSource/UnitTests/2020-01-06-coverage-005.c --- a/SingleSource/UnitTests/2020-01-06-coverage-005.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-005.c @@ -1,5 +1,6 @@ #include #include +#include uint32_t a, c, d; uint64_t b; @@ -81,11 +82,11 @@ h(); g(); - printf("a = %i\n", a); - printf("b = %li\n", b); - printf("c = %i\n", c); - printf("d = %i\n", d); - printf("e = %i\n", e); + printf("a = %" PRIu32 "\n", a); + printf("b = %" PRIu64 "\n", b); + printf("c = %" PRIu32 "\n", c); + printf("d = %" PRIu32 "\n", d); + printf("e = %" PRIi16 "\n", e); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-005.reference_output b/SingleSource/UnitTests/2020-01-06-coverage-005.reference_output --- a/SingleSource/UnitTests/2020-01-06-coverage-005.reference_output +++ b/SingleSource/UnitTests/2020-01-06-coverage-005.reference_output @@ -1,6 +1,6 @@ a = 16777101 b = 2 -c = -6 +c = 4294967290 d = 0 e = -9 exit 0 diff --git a/SingleSource/UnitTests/2020-01-06-coverage-006.c b/SingleSource/UnitTests/2020-01-06-coverage-006.c --- a/SingleSource/UnitTests/2020-01-06-coverage-006.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-006.c @@ -1,5 +1,6 @@ #include #include +#include #pragma pack(1) @@ -31,9 +32,9 @@ b.a = val_1; d(); - printf("b.a = %i\n", b.a); - printf("c = %i\n", c); - printf("x = %i\n", x); + printf("b.a = %u\n", b.a); + printf("c = %" PRIi32 "\n", c); + printf("x = %" PRIi32 "\n", x); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-007.c b/SingleSource/UnitTests/2020-01-06-coverage-007.c --- a/SingleSource/UnitTests/2020-01-06-coverage-007.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-007.c @@ -1,5 +1,6 @@ #include #include +#include uint32_t a; const uint32_t b = -1L, c; @@ -24,10 +25,10 @@ a = val_1; e(); - printf("a = %i\n", a); - printf("b = %i\n", b); - printf("c = %i\n", c); - printf("d = %i\n", d); + printf("a = %" PRIu32 "\n", a); + printf("b = %" PRIu32 "\n", b); + printf("c = %" PRIu32 "\n", c); + printf("d = %" PRIi16 "\n", d); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-007.reference_output b/SingleSource/UnitTests/2020-01-06-coverage-007.reference_output --- a/SingleSource/UnitTests/2020-01-06-coverage-007.reference_output +++ b/SingleSource/UnitTests/2020-01-06-coverage-007.reference_output @@ -1,5 +1,5 @@ a = 3 -b = -1 +b = 4294967295 c = 0 d = 0 exit 0 diff --git a/SingleSource/UnitTests/2020-01-06-coverage-008.c b/SingleSource/UnitTests/2020-01-06-coverage-008.c --- a/SingleSource/UnitTests/2020-01-06-coverage-008.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-008.c @@ -1,5 +1,6 @@ #include #include +#include struct a { int64_t b; @@ -35,11 +36,11 @@ e = h.c; f(&h); - printf("d.b = %li\n", d.b); - printf("d.c = %li\n", d.c); - printf("s.b = %li\n", s.b); - printf("s.c = %li\n", s.c); - printf("e = %li\n", e); + printf("d.b = %" PRIi64 "\n", d.b); + printf("d.c = %" PRIi64 "\n", d.c); + printf("s.b = %" PRIi64 "\n", s.b); + printf("s.c = %" PRIi64 "\n", s.c); + printf("e = %" PRIi64 "\n", e); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-009.c b/SingleSource/UnitTests/2020-01-06-coverage-009.c --- a/SingleSource/UnitTests/2020-01-06-coverage-009.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-009.c @@ -1,5 +1,6 @@ #include #include +#include uint32_t a, b, h; int16_t c, g; @@ -43,12 +44,12 @@ a = val_1; i(); - printf("a = %i\n", a); - printf("b = %i\n", b); - printf("c = %i\n", c); - printf("d = %i\n", d); - printf("g = %i\n", g); - printf("h = %i\n", h); + printf("a = %" PRIu32 "\n", a); + printf("b = %" PRIu32 "\n", b); + printf("c = %" PRIi16 "\n", c); + printf("d = %" PRIu8 "\n", d); + printf("g = %" PRIi16 "\n", g); + printf("h = %" PRIu32 "\n", h); return 0; } diff --git a/SingleSource/UnitTests/2020-01-06-coverage-010.c b/SingleSource/UnitTests/2020-01-06-coverage-010.c --- a/SingleSource/UnitTests/2020-01-06-coverage-010.c +++ b/SingleSource/UnitTests/2020-01-06-coverage-010.c @@ -1,5 +1,6 @@ #include #include +#include int32_t *a; int32_t b, d, f; @@ -80,16 +81,16 @@ a = &temp_1; k(); - printf("b = %i\n", b); - printf("c = %i\n", c); - printf("d = %i\n", d); - printf("x = %i\n", x); - printf("e = %i\n", e); - printf("y = %i\n", y); - printf("z = %i\n", z); - printf("v = %i\n", v); - printf("f = %i\n", f); - printf("w = %i\n", w); + printf("b = %" PRIi32 "\n", b); + printf("c = %" PRIi8 "\n", c); + printf("d = %" PRIi32 "\n", d); + printf("x = %" PRIi32 "\n", x); + printf("e = %" PRIi32 "\n", e); + printf("y = %" PRIi32 "\n", y); + printf("z = %" PRIi32 "\n", z); + printf("v = %" PRIi32 "\n", v); + printf("f = %" PRIi32 "\n", f); + printf("w = %" PRIi32 "\n", w); return 0; }