提交 cad683fb 编写于 作者: D Davidlohr Bueso 提交者: Greg Kroah-Hartman

staging: zram: show correct disksize

The ->disksize variable stores values in units of bytes,
print the correct size in Kb
Signed-off-by: NDavidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ca3d70bd
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册