Skip to content

Commit

Permalink
(litmus_test_results) FIX: bad print of register value in histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
bensimner committed May 17, 2024
1 parent 3838058 commit b41669a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/litmus_test/litmus_test_results.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b41669a

Please sign in to comment.