From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id 473556B006A for ; Thu, 14 Jan 2010 07:00:06 -0500 (EST) Date: Thu, 14 Jan 2010 19:59:56 +0800 From: Wu Fengguang Subject: [PATCH] memory-hotplug: add 0x prefix to HEX block_size_bytes Message-ID: <20100114115956.GA2512@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-linux-mm@kvack.org To: Andrew Morton Cc: Andi Kleen , KAMEZAWA Hiroyuki , "Zheng, Shaohui" , Linux Memory Management List List-ID: CC: Andi Kleen Signed-off-by: Wu Fengguang --- drivers/base/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-mm.orig/drivers/base/memory.c 2010-01-14 19:55:40.000000000 +0800 +++ linux-mm/drivers/base/memory.c 2010-01-14 19:55:47.000000000 +0800 @@ -311,7 +311,7 @@ static SYSDEV_ATTR(removable, 0444, show 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); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org