mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
committed by
GitHub
parent
c69f6eec47
commit
73f51ccff7
@@ -19,6 +19,7 @@
|
||||
#include "test_functions.h"
|
||||
#include "utility.h"
|
||||
|
||||
#include <cinttypes>
|
||||
#include <cstring>
|
||||
|
||||
#define CORRECTLY_ROUNDED 0
|
||||
@@ -843,8 +844,8 @@ int TestFunc_Float_Float_Float_Float(const Func *f, MTdata d, bool relaxedMode)
|
||||
{
|
||||
if (gVerboseBruteForce)
|
||||
{
|
||||
vlog("base:%14u step:%10u bufferSize:%10zd \n", i, step,
|
||||
BUFFER_SIZE);
|
||||
vlog("base:%14" PRIu64 " step:%10" PRIu64 " bufferSize:%10d \n",
|
||||
i, step, BUFFER_SIZE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user