From e66102761533cbe0492a28557189bd8328c2fff4 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 14 Nov 2006 17:29:27 +0000 Subject: [PATCH] Fixed printing calc expressions with % chars in them. --- src/libCom/test/epicsCalcTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }