math_brute_force: Fix -Wformat warnings (#1518)

* math_brute_force: Fix -Wformat warnings

The main sources of warnings were:

 * Printing of 64-bit types, which is now done using the `PRI*64`
   macros from <cinttypes> to ensure portability across 32 and 64-bit
   builds.

 * Printing of `size_t` types that lacked a `z` length modifier.

 * Printing of values with a `z` length modifier that weren't a
   `size_t` type.

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>

* [NFC] math_brute_force: clang-format after -Wformat changes

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
Sven van Haastregt
2022-10-01 10:14:32 +01:00
committed by GitHub
parent c69f6eec47
commit 73f51ccff7
23 changed files with 111 additions and 77 deletions

View File

@@ -132,7 +132,7 @@ static int doTest(const char *name)
if ((gStartTestNumber != ~0u && i < gStartTestNumber)
|| i > gEndTestNumber)
{
vlog("Skipping function #%d\n", i);
vlog("Skipping function #%zu\n", i);
return 0;
}