From: Chris Rienzo Date: Fri, 2 Aug 2019 15:44:26 +0000 (+0000) Subject: FS-11979 [test] Fix error message log in fst_xcheck() X-Git-Tag: v1.10.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c55b9892201f5758099a1f90280e4774f34fa696;p=thirdparty%2Ffreeswitch.git FS-11979 [test] Fix error message log in fst_xcheck() --- diff --git a/src/include/test/switch_test.h b/src/include/test/switch_test.h index b0890194db..1cf1ff94ff 100644 --- a/src/include/test/switch_test.h +++ b/src/include/test/switch_test.h @@ -196,13 +196,13 @@ static switch_status_t fst_init_core_and_modload(const char *confdir, const char * Check a test /w error message */ #define fst_xcheck(expr, error_msg) \ - fct_xchk(expr, error_msg); + fct_xchk(expr, "%s", error_msg); /** * Fail a test */ #define fst_fail(error_msg) \ - fct_xchk(0, error_msg); + fct_xchk(0, "%s", error_msg); /** * Check duration relative to test start, last marked time, or last check.