From: Wu Fengguang Date: Sat, 16 Jan 2010 01:01:31 +0000 (-0800) Subject: memory-hotplug: add 0x prefix to HEX block_size_bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba168fc37dea145deeb8fa9e7e71c748d2e00d74;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git memory-hotplug: add 0x prefix to HEX block_size_bytes Signed-off-by: Wu Fengguang Cc: Andi Kleen Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/memory.c b/drivers/base/memory.c index d7d77d4a402c..bd025059711f 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -311,7 +311,7 @@ static SYSDEV_ATTR(removable, 0444, show_mem_removable, NULL); static ssize_t print_block_size(struct class *class, char *buf) { - return sprintf(buf, "%lx\n", (unsigned long)PAGES_PER_SECTION * PAGE_SIZE); + return sprintf(buf, "%#lx\n", (unsigned long)PAGES_PER_SECTION * PAGE_SIZE); } static CLASS_ATTR(block_size_bytes, 0444, print_block_size, NULL);