From 4969004422b3065a78c81a26067f19df7aaf90da Mon Sep 17 00:00:00 2001 From: Alex Xie Date: Wed, 9 Aug 2023 16:15:26 -0400 Subject: [PATCH] SWDEV-411369 - printf parameter is wrong Change-Id: I3c6752bd0266919215de6282d289afd04c77d8ef --- opencl/tests/ocltst/module/perf/OCLPerfMemLatency.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencl/tests/ocltst/module/perf/OCLPerfMemLatency.cpp b/opencl/tests/ocltst/module/perf/OCLPerfMemLatency.cpp index 558ccf1244..9670aed398 100644 --- a/opencl/tests/ocltst/module/perf/OCLPerfMemLatency.cpp +++ b/opencl/tests/ocltst/module/perf/OCLPerfMemLatency.cpp @@ -369,9 +369,9 @@ void OCLPerfMemLatency::run(void) { char buf[256]; char buf2[32]; if (makeRW) - SNPRINTF(buf2, sizeof(buf), "volatileRW"); + SNPRINTF(buf2, sizeof(buf2), "volatileRW"); else if (makeVolatile) - SNPRINTF(buf2, sizeof(buf), "volatile"); + SNPRINTF(buf2, sizeof(buf2), "volatile"); else buf2[0] = '\0'; SNPRINTF(buf, sizeof(buf), "%10s %2d threads, %8d reads, %5d repeats (ns)",