X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_valgrind.c;h=7ef0ac1aa9ac72809473befa118538580d820a1e;hb=9450cb3c1dff76e09305d18687291bce4221e9b6;hp=da61dd364729daf87c42cbeb91fbe184e9069e0b;hpb=c6c779398e42756a7cb1c566e8fd23b955c4775f;p=ccan diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index da61dd36..7ef0ac1a 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -127,7 +127,7 @@ static void do_run_tests_vg(struct manifest *m, i->leak_info = get_leaks(output, &err); } if (err) - score_file_error(score, i, 0, err); + score_file_error(score, i, 0, "%s", err); else score->score++; } @@ -149,7 +149,8 @@ static void do_leakcheck_vg(struct manifest *m, foreach_ptr(list, &m->run_tests, &m->api_tests) { list_for_each(list, i, list) { if (i->leak_info) { - score_file_error(score, i, 0, i->leak_info); + score_file_error(score, i, 0, "%s", + i->leak_info); leaks = true; } }