Signed-off-by: Angus Salkeld <[email protected]>
---
 test/cpgbench.c   |    2 +-
 test/cpgbenchzc.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/cpgbench.c b/test/cpgbench.c
index aab29fa..efd0f28 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 b77d296..7d42862 100644
--- a/test/cpgbenchzc.c
+++ b/test/cpgbenchzc.c
@@ -53,6 +53,7 @@
 
 #include <corosync/corotypes.h>
 #include <corosync/cpg.h>
+#include "../lib/util.h"
 
 #ifdef COROSYNC_SOLARIS
 #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);
-- 
1.7.3.1

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to