Commit 6434b94a authored by Zhang Yanfei's avatar Zhang Yanfei Committed by Linus Torvalds

ia64: use %ld to print pages calculated in nr_free_buffer_pages

Now the function nr_free_buffer_pages returns unsigned long, so use %ld
to print its return value.
Signed-off-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ebec3862
...@@ -93,7 +93,7 @@ void show_mem(unsigned int filter) ...@@ -93,7 +93,7 @@ void show_mem(unsigned int filter)
printk(KERN_INFO "%d pages swap cached\n", total_cached); printk(KERN_INFO "%d pages swap cached\n", total_cached);
printk(KERN_INFO "Total of %ld pages in page table cache\n", printk(KERN_INFO "Total of %ld pages in page table cache\n",
quicklist_total_size()); quicklist_total_size());
printk(KERN_INFO "%d free buffer pages\n", nr_free_buffer_pages()); printk(KERN_INFO "%ld free buffer pages\n", nr_free_buffer_pages());
} }
......
...@@ -666,7 +666,7 @@ void show_mem(unsigned int filter) ...@@ -666,7 +666,7 @@ void show_mem(unsigned int filter)
printk(KERN_INFO "%d pages swap cached\n", total_cached); printk(KERN_INFO "%d pages swap cached\n", total_cached);
printk(KERN_INFO "Total of %ld pages in page table cache\n", printk(KERN_INFO "Total of %ld pages in page table cache\n",
quicklist_total_size()); quicklist_total_size());
printk(KERN_INFO "%d free buffer pages\n", nr_free_buffer_pages()); printk(KERN_INFO "%ld free buffer pages\n", nr_free_buffer_pages());
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment