diff --git a/SYCL/DeviceLib/built-ins/printf.cpp b/SYCL/DeviceLib/built-ins/printf.cpp index 36aee3b8f2..27d72070aa 100644 --- a/SYCL/DeviceLib/built-ins/printf.cpp +++ b/SYCL/DeviceLib/built-ins/printf.cpp @@ -64,7 +64,7 @@ int main() { // On SPIRV devices, vectors can be printed via native OpenCL types: using ocl_int4 = sycl::vec::vector_t; { - static const CONSTANT char format[] = "%v4d\n"; + static const CONSTANT char format[] = "%v4hld\n"; ext::oneapi::experimental::printf(format, (ocl_int4)v4); }