regressions/ck_hs: Use (char *) for debug output.

ck_pring
Samy Al Bahra 12 years ago
parent e9ca398123
commit 44b845a53a

@ -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;

@ -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);
}
}

Loading…
Cancel
Save