struct order_lock* lock;
int i=0;
RBTREE_FOR(lock, struct order_lock*, all_locks) {
- if(1) printf("[%d/%d] Checking lock %d %d %s %d\n",
- i++, (int)all_locks->count,
+ if(i % 100 == 0) printf("[%d/%d] Checking lock %d %d %s %d\n",
+ i, (int)all_locks->count,
lock->id.thr, lock->id.instance,
lock->create_file, lock->create_line);
+ i++;
check_order_lock(lock);
}
}
(unsigned)table->size, table->size_mask);
if(extended) {
size_t i;
- int min=table->size*2, max=-2;
+ int min=(int)table->size*2, max=-2;
for(i=0; i<table->size; i++) {
int here = 0;
struct lruhash_entry *en;