[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1357104262.2182.5.camel@buesod1.americas.hpqcorp.net>
Date: Tue, 01 Jan 2013 21:24:22 -0800
From: Davidlohr Bueso <davidlohr.bueso@...com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, Nitin Gupta <ngupta@...are.org>
Subject: [PATCH 2/3] 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@...com>
---
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 8115be9..10d7592 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;
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists