diff --git a/test/cpgbench.c b/test/cpgbench.c index 30cd0459..0a085fe2 100644 --- a/test/cpgbench.c +++ b/test/cpgbench.c @@ -190,7 +190,7 @@ int main (void) { res = cpg_finalize (handle); if (res != CS_OK) { - printf ("cpg_join failed with result %d\n", res); + printf ("cpg_finalize failed with result %d\n", res); exit (1); } return (0); diff --git a/test/cpgbenchzc.c b/test/cpgbenchzc.c index 93311a08..db78289a 100644 --- a/test/cpgbenchzc.c +++ b/test/cpgbenchzc.c @@ -53,6 +53,7 @@ #include #include +#include "../lib/util.h" #ifndef timersub #define timersub(a, b, result) \ @@ -176,7 +177,7 @@ int main (void) { res = cpg_join (handle, &group_name); if (res != CS_OK) { - printf ("cpg_join failed with result %d\n", res); + printf ("cpg_join failed with result %s\n", cs_strerror(res)); exit (1); } @@ -187,7 +188,7 @@ int main (void) { res = cpg_finalize (handle); if (res != CS_OK) { - printf ("cpg_join failed with result %d\n", res); + printf ("cpg_finalize failed with result %s\n", cs_strerror(res)); exit (1); } return (0);