bin/vmstat: Fix -Wformat=

Change-Id: Id0a03d868143880d50c685d830b23017293f3e38
Reviewed-on: https://review.haiku-os.org/c/1518
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Murai Takashi
2019-06-17 22:34:37 +00:00
committed by waddlesplash
parent fe6e591432
commit f5fb43c94f
+10 -7
View File
@@ -74,13 +74,16 @@ main(int argc, char** argv)
return 1;
}
printf("max memory:\t\t%Lu\n", info.max_pages * B_PAGE_SIZE);
printf("free memory:\t\t%Lu\n", info.free_memory);
printf("needed memory:\t\t%Lu\n", info.needed_memory);
printf("block cache memory:\t%Lu\n", info.block_cache_pages * B_PAGE_SIZE);
printf("max swap space:\t\t%Lu\n", info.max_swap_pages * B_PAGE_SIZE);
printf("free swap space:\t%Lu\n", info.free_swap_pages * B_PAGE_SIZE);
printf("page faults:\t\t%lu\n", info.page_faults);
printf("max memory:\t\t%" B_PRIu64 "\n", info.max_pages * B_PAGE_SIZE);
printf("free memory:\t\t%" B_PRIu64 "\n", info.free_memory);
printf("needed memory:\t\t%" B_PRIu64 "\n", info.needed_memory);
printf("block cache memory:\t%" B_PRIu64 "\n",
info.block_cache_pages * B_PAGE_SIZE);
printf("max swap space:\t\t%" B_PRIu64 "\n",
info.max_swap_pages * B_PAGE_SIZE);
printf("free swap space:\t%" B_PRIu64 "\n",
info.free_swap_pages * B_PAGE_SIZE);
printf("page faults:\t\t%" B_PRIu32 "\n", info.page_faults);
if (periodically) {
puts("\npage faults used memory used swap block cache");