X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;h=334295ad158ed8a8852c5bfe7487b7db0666e303;hp=3f64bc91b512e35cb05a812979118ee06b9b1280;hb=6fa62e5ae1e29646aa718e99020fdf2efee74373;hpb=b7dedf4344c7e573c048a36e7b456f2a4bdbebb7 diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 3f64bc91..334295ad 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -330,8 +330,9 @@ static NORETURN void failtest_cleanup(bool forced_cleanup, int status) if (!history[i].cleanup) continue; if (!forced_cleanup) { - printf("Leak at %s:%u\n", - history[i].file, history[i].line); + printf("Leak at %s:%u: --failpath=%s\n", + history[i].file, history[i].line, + failpath_string()); status = 1; } history[i].cleanup(&history[i].u);