X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;fp=ccan%2Ffailtest%2Ffailtest.c;h=a0c825399d03881ab0338075a0a46fb2c4ec1898;hb=2006aa032d6f72599165e50242d06df35428d43a;hp=56ace7431847c5ac9fd059b77d4b9271958a3fb7;hpb=acb6106ca2778d74af91f9b92bc32df179195b6b;p=ccan diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 56ace743..a0c82539 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -518,8 +518,8 @@ static bool should_fail(struct failtest_call *call) } else { if (tolower((unsigned char)*failpath) != info_to_arg[call->type]) - errx(1, "Failpath expected '%c' got '%c'\n", - info_to_arg[call->type], *failpath); + errx(1, "Failpath expected '%s' got '%c'\n", + failpath, info_to_arg[call->type]); call->fail = cisupper(*(failpath++)); return call->fail; }