projects/linux·commit ba168fc3

memory-hotplug: add 0x prefix to HEX block_size_bytes

ba168fc3 · Wu Fengguang <[email protected]> · 2010-01-15 17:01:31 -08:00

Signed-off-by: Wu Fengguang <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
ba168fc37dea145deeb8fa9e7e71c748d2e00d74
Parents
fce66477

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/base/memory.cmodified+1−1View file

drivers/base/memory.c

View file
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index d7d77d4..bd02505 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);