aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/zram
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr.bueso@hp.com>2013-01-01 21:24:22 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-15 23:45:27 -0800
commitcad683fb9d53fa2cbcf82660e663fa1180f86797 (patch)
tree1672484066cb591405ea5afaec45763d9566def3 /drivers/staging/zram
parentstaging: zram: simplify num_devices paramater (diff)
downloadlinux-dev-cad683fb9d53fa2cbcf82660e663fa1180f86797.tar.xz
linux-dev-cad683fb9d53fa2cbcf82660e663fa1180f86797.zip
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 <davidlohr.bueso@hp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/zram')
-rw-r--r--drivers/staging/zram/zram_drv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 8115be90517c..10d75929bc29 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;