@@ -883,8 +883,8 @@ size_t init_pagecache(PAGECACHE *pagecache, size_t use_mem,
883
883
pagecache -> waiting_for_hash_link .last_thread = NULL ;
884
884
pagecache -> waiting_for_block .last_thread = NULL ;
885
885
DBUG_PRINT ("exit" ,
886
- ("disk_blocks: %ld block_root: 0x%lx hash_entries: %ld \
887
- hash_root: 0x%lx hash_links: %ld hash_link_root: 0x%lx" ,
886
+ ("disk_blocks: %zu block_root: 0x%lx hash_entries: %zu \
887
+ hash_root: 0x%lx hash_links: %zu hash_link_root: 0x%lx" ,
888
888
pagecache -> disk_blocks , (long ) pagecache -> block_root ,
889
889
pagecache -> hash_entries , (long ) pagecache -> hash_root ,
890
890
pagecache -> hash_links , (long ) pagecache -> hash_link_root ));
@@ -1182,7 +1182,7 @@ void end_pagecache(PAGECACHE *pagecache, my_bool cleanup)
1182
1182
pagecache -> blocks_changed = 0 ;
1183
1183
}
1184
1184
1185
- DBUG_PRINT ("status" , ("used: %lu changed: %lu w_requests: %lu "
1185
+ DBUG_PRINT ("status" , ("used: %zu changed: %zu w_requests: %lu "
1186
1186
"writes: %lu r_requests: %lu reads: %lu" ,
1187
1187
pagecache -> blocks_used ,
1188
1188
pagecache -> global_blocks_changed ,
@@ -1517,7 +1517,7 @@ static void unreg_request(PAGECACHE *pagecache,
1517
1517
if (block -> temperature == PCBLOCK_WARM )
1518
1518
pagecache -> warm_blocks -- ;
1519
1519
block -> temperature = PCBLOCK_HOT ;
1520
- KEYCACHE_DBUG_PRINT ("unreg_request" , ("#warm_blocks: %lu " ,
1520
+ KEYCACHE_DBUG_PRINT ("unreg_request" , ("#warm_blocks: %zu " ,
1521
1521
pagecache -> warm_blocks ));
1522
1522
}
1523
1523
link_block (pagecache , block , hot , (my_bool )at_end );
@@ -1536,7 +1536,7 @@ static void unreg_request(PAGECACHE *pagecache,
1536
1536
pagecache -> warm_blocks ++ ;
1537
1537
block -> temperature = PCBLOCK_WARM ;
1538
1538
}
1539
- KEYCACHE_DBUG_PRINT ("unreg_request" , ("#warm_blocks: %lu " ,
1539
+ KEYCACHE_DBUG_PRINT ("unreg_request" , ("#warm_blocks: %zu " ,
1540
1540
pagecache -> warm_blocks ));
1541
1541
}
1542
1542
}
@@ -4491,7 +4491,7 @@ static int flush_pagecache_blocks_int(PAGECACHE *pagecache,
4491
4491
int rc = PCFLUSH_OK ;
4492
4492
DBUG_ENTER ("flush_pagecache_blocks_int" );
4493
4493
DBUG_PRINT ("enter" ,
4494
- ("fd: %d blocks_used: %lu blocks_changed: %lu type: %d" ,
4494
+ ("fd: %d blocks_used: %zu blocks_changed: %zu type: %d" ,
4495
4495
file -> file , pagecache -> blocks_used , pagecache -> blocks_changed ,
4496
4496
type ));
4497
4497
@@ -4956,7 +4956,7 @@ my_bool pagecache_collect_changed_blocks_with_lsn(PAGECACHE *pagecache,
4956
4956
ptr = str -> str ;
4957
4957
int8store (ptr , (ulonglong )stored_list_size );
4958
4958
ptr += 8 ;
4959
- DBUG_PRINT ("info" , ("found %lu dirty pages" , stored_list_size ));
4959
+ DBUG_PRINT ("info" , ("found %zu dirty pages" , stored_list_size ));
4960
4960
if (stored_list_size == 0 )
4961
4961
goto end ;
4962
4962
for (file_hash = 0 ; file_hash < pagecache -> changed_blocks_hash_size ; file_hash ++ )
0 commit comments