From 44b845a53abf9e3c220d0b1be7cfbb6e72e2e690 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 16 Sep 2012 23:18:19 -0400 Subject: [PATCH] regressions/ck_hs: Use (char *) for debug output. --- regressions/ck_hs/benchmark/parallel_bytestring.c | 2 +- regressions/ck_hs/validate/serial.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/regressions/ck_hs/benchmark/parallel_bytestring.c b/regressions/ck_hs/benchmark/parallel_bytestring.c index 401a0bd..6fa4a14 100644 --- a/regressions/ck_hs/benchmark/parallel_bytestring.c +++ b/regressions/ck_hs/benchmark/parallel_bytestring.c @@ -237,7 +237,7 @@ reader(void *unused) if (strcmp(r, keys[i]) == 0) continue; - fprintf(stderr, "ERROR: Found invalid value: [%s] but expected [%s]\n", r, keys[i]); + fprintf(stderr, "ERROR: Found invalid value: [%s] but expected [%s]\n", (char *)r, keys[i]); exit(EXIT_FAILURE); } a += rdtsc() - s; diff --git a/regressions/ck_hs/validate/serial.c b/regressions/ck_hs/validate/serial.c index 49dea38..13fc053 100644 --- a/regressions/ck_hs/validate/serial.c +++ b/regressions/ck_hs/validate/serial.c @@ -155,7 +155,7 @@ main(void) } if (strcmp(r, test[i]) != 0) { - fprintf(stderr, "ERROR: Removed incorrect node (%s != %s)\n", r, test[i]); + fprintf(stderr, "ERROR: Removed incorrect node (%s != %s)\n", (char *)r, test[i]); exit(EXIT_FAILURE); } } @@ -175,7 +175,7 @@ main(void) /* Expected replacement. */ if (d == true && (r == NULL || strcmp(r, test[i]) != 0)) { fprintf(stderr, "ERROR: Incorrect previous value: %s != %s\n", - test[i], r); + test[i], (char *)r); } if (ck_hs_set(&hs, h, test[i], &r) == false) { @@ -184,7 +184,7 @@ main(void) } if (strcmp(r, test[i]) != 0) { - fprintf(stderr, "ERROR: Invalid pointer: %s != %s\n", r, test[i]); + fprintf(stderr, "ERROR: Invalid pointer: %s != %s\n", (char *)r, test[i]); exit(EXIT_FAILURE); } }