mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
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>
This commit is contained in:
parent
ca3d70bd68
commit
cad683fb9d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user