diff --git a/src/libCom/test/epicsCalcTest.cpp b/src/libCom/test/epicsCalcTest.cpp index 6d33dfa23..872bfefd2 100644 --- a/src/libCom/test/epicsCalcTest.cpp +++ b/src/libCom/test/epicsCalcTest.cpp @@ -59,7 +59,7 @@ void testCalc(const char *expr, double expected) { } else { pass = (result == expected); } - if (!testOk(pass, expr)) { + if (!testOk(pass, "%s", expr)) { testDiag("Expected result is %g, actually got %g", expected, result); calcExprDump(rpn); }