From eb8a25a6e00bffbd2d5c3aecd27fc7b2e1c967f3 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Wed, 25 Mar 2015 16:29:58 +0100 Subject: [PATCH] examples: fixed printf format specifier in network and opencl examples --- doc/examples/mtapi/mtapi_c_network-fragmented.cc | 2 +- doc/examples/mtapi/mtapi_c_opencl-fragmented.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/mtapi/mtapi_c_network-fragmented.cc b/doc/examples/mtapi/mtapi_c_network-fragmented.cc index 0b7e4fd..eafc07a 100644 --- a/doc/examples/mtapi/mtapi_c_network-fragmented.cc +++ b/doc/examples/mtapi/mtapi_c_network-fragmented.cc @@ -88,7 +88,7 @@ void RunMTAPI_C_Network() { for (int ii = 0; ii < kElements; ii++) { if (results[ii] != ii * 2 + 1) { - printf("result %d was expected to be %d but was %d.\n", + printf("result %d was expected to be %d but was %f.\n", ii, ii * 2 + 1, results[ii]); exit(MTAPI_ERR_UNKNOWN); } diff --git a/doc/examples/mtapi/mtapi_c_opencl-fragmented.cc b/doc/examples/mtapi/mtapi_c_opencl-fragmented.cc index 5631f3d..741c461 100644 --- a/doc/examples/mtapi/mtapi_c_opencl-fragmented.cc +++ b/doc/examples/mtapi/mtapi_c_opencl-fragmented.cc @@ -84,7 +84,7 @@ void RunMTAPI_C_OpenCL() { for (int ii = 0; ii < kElements; ii++) { if (results[ii] != ii * 2 + 1) { - printf("result %d was expected to be %d but was %d.\n", + printf("result %d was expected to be %d but was %f.\n", ii, ii * 2 + 1, results[ii]); exit(MTAPI_ERR_UNKNOWN); } -- libgit2 0.26.0