fix debug logs in cacheline concurrency UT tests
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
99be26cefd
commit
3775ab0e37
@ -505,7 +505,8 @@ static void cctest(unsigned num_threads, unsigned num_iterations, unsigned cline
|
|||||||
print_message("thread no %u\n", i);
|
print_message("thread no %u\n", i);
|
||||||
for (j = 0; j < num_clines; j++) {
|
for (j = 0; j < num_clines; j++) {
|
||||||
struct ocf_map_info *map = 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";
|
(req->alock_rw == OCF_WRITE ? "W" : "R") : "X";
|
||||||
print_message("[%u] %u %s\n", j, map->coll_idx, status);
|
print_message("[%u] %u %s\n", j, map->coll_idx, status);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user