ia64: use %ld to print pages calculated in nr_free_buffer_pages
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Sat, 23 Feb 2013 00:35:45 +0000 (16:35 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Feb 2013 01:50:22 +0000 (17:50 -0800)
Now the function nr_free_buffer_pages returns unsigned long, so use %ld
to print its return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/ia64/mm/contig.c
arch/ia64/mm/discontig.c

index 1516d1dc11fd3662d8d1b70497989f84750546d2..80dab509dfb07ee199c9c58df1a88f7ae718771e 100644 (file)
@@ -93,7 +93,7 @@ void show_mem(unsigned int filter)
        printk(KERN_INFO "%d pages swap cached\n", total_cached);
        printk(KERN_INFO "Total of %ld pages in page table cache\n",
               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());
 }
 
 
index 652fee0979219b6976d697652349138c7b7296a2..c2e955ee79a8041595ee757df838d37904d6e0f1 100644 (file)
@@ -666,7 +666,7 @@ void show_mem(unsigned int filter)
        printk(KERN_INFO "%d pages swap cached\n", total_cached);
        printk(KERN_INFO "Total of %ld pages in page table cache\n",
               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());
 }
 
 /**