[PATCH 1/1] Staging: zram: print the disk size in KB
From: Ajeet Yadav
Date: Mon Dec 12 2011 - 08:12:30 EST
Total memory size is in KB, but the zram disk size was not
printed in KB, correct the figure in KB units.
Signed-off-by: Ajeet Yadav <ajeet.yadav.77@xxxxxxxxx>
---
drivers/staging/zram/zram_drv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 09de99f..ff591e3 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -126,7 +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
);
}
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/