From cad683fb9d53fa2cbcf82660e663fa1180f86797 Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Tue, 1 Jan 2013 21:24:22 -0800 Subject: [PATCH] staging: zram: show correct disksize The ->disksize variable stores values in units of bytes, print the correct size in Kb Signed-off-by: Davidlohr Bueso Signed-off-by: Greg Kroah-Hartman --- drivers/staging/zram/zram_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c index 8115be90517..10d75929bc2 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c @@ -126,8 +126,7 @@ static void zram_set_disksize(struct zram *zram, size_t totalram_bytes) "\tMemory Size: %zu kB\n" "\tSize you selected: %llu kB\n" "Continuing anyway ...\n", - totalram_bytes >> 10, zram->disksize - ); + totalram_bytes >> 10, zram->disksize >> 10); } zram->disksize &= PAGE_MASK; -- 2.20.1