Skip to content

Commit

Permalink
Merge pull request #527 from arutk/clc_ut_fix
Browse files Browse the repository at this point in the history
fix debug logs in cacheline concurrency UT tests
  • Loading branch information
Robert Baldyga authored Jul 29, 2021
2 parents b26483f + 3775ab0 commit 865d29d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ static void cctest(unsigned num_threads, unsigned num_iterations, unsigned cline
print_message("thread no %u\n", i);
for (j = 0; j < num_clines; j++) {
struct ocf_map_info *map = clines[j];
const char *status = env_bit_test(index, (unsigned long*)req->alock_status) ?
unsigned index = map - req->map;
const char *status = env_bit_test(index, (unsigned long*)&req->alock_status) ?
(req->alock_rw == OCF_WRITE ? "W" : "R") : "X";
print_message("[%u] %u %s\n", j, map->coll_idx, status);
}
Expand Down

0 comments on commit 865d29d

Please sign in to comment.