From b41669a99ab9c5e47ddca6952a0143a002b2e51b Mon Sep 17 00:00:00 2001 From: bjs Date: Fri, 17 May 2024 11:50:26 +0000 Subject: [PATCH] (litmus_test_results) FIX: bad print of register value in histogram --- lib/litmus_test/litmus_test_results.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/litmus_test/litmus_test_results.c b/lib/litmus_test/litmus_test_results.c index 875c23a..861b717 100644 --- a/lib/litmus_test/litmus_test_results.c +++ b/lib/litmus_test/litmus_test_results.c @@ -210,9 +210,8 @@ static void print_results_herd(test_hist_t* res, test_ctx_t* ctx) { char marker = was_interesting ? '*' : ':'; sprintf(buf, "%ld%c>", res->results[r]->counter, marker); for (reg_idx_t reg = 0; reg < ctx->cfg->no_regs; reg++) { - char herd_reg_name[10]; sprint_reg(buf, ctx->cfg->reg_names[reg], STYLE_HERDTOOLS); - sprintf(buf, "=%d;", herd_reg_name, res->results[r]->values[reg]); + sprintf(buf, "=%d;", res->results[r]->values[reg]); } printf("%s\n", line); }