lkml.org 
[lkml]   [2011]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 1/1] Staging: zram: print the disk size in KB
From
From a5d5ba92b5af9134e617986884856334c377e1d0 Mon Sep 17 00:00:00 2001
From: Ajeet Yadav <ajeet.yadav.77@gmail.com>
Date: Mon, 12 Dec 2011 18:42:30 +0530
Subject: [PATCH 1/1] Staging: zram: print the disk size in KB

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@gmail.com>
---
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
);
}

--

\
 
 \ /
  Last update: 2011-12-13 06:19    [W:0.082 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site