From f1be36b6d22b3c56f28507aaaae1d8b2d751a0f6 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 7 Oct 2012 21:51:44 -0400 Subject: [PATCH] regressions/ck_ring: Fix erroneous usage of ck_error. --- regressions/ck_ring/validate/ck_ring_spmc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regressions/ck_ring/validate/ck_ring_spmc.c b/regressions/ck_ring/validate/ck_ring_spmc.c index 10a03ec..6231745 100644 --- a/regressions/ck_ring/validate/ck_ring_spmc.c +++ b/regressions/ck_ring/validate/ck_ring_spmc.c @@ -106,7 +106,7 @@ test_spmc(void *c) } } - ck_error("[%d] Observed %u\n", tid, observed); + fprintf(stderr, "[%d] Observed %u\n", tid, observed); return NULL; } @@ -212,7 +212,7 @@ main(int argc, char *argv[]) thread = malloc(sizeof(pthread_t) * nthr); assert(thread); - ck_error("SPSC test:"); + fprintf(stderr, "SPSC test:"); for (i = 0; i < nthr; i++) { context[i].tid = i; if (i == 0) { @@ -236,9 +236,9 @@ main(int argc, char *argv[]) for (i = 0; i < nthr; i++) pthread_join(thread[i], NULL); - ck_error(" done\n"); + fprintf(stderr, " done\n"); - ck_error("SPMC test:\n"); + fprintf(stderr, "SPMC test:\n"); buffer = malloc(sizeof(void *) * (size + 1)); assert(buffer); memset(buffer, 0, sizeof(void *) * (size + 1));