diff options
author | Minchan Kim <minchan@kernel.org> | 2013-02-05 18:45:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-05 21:01:24 -0500 |
commit | 152bce6bdd6e6866ff83166ac75177d001c4360d (patch) | |
tree | d211bbe8a0cc06c2d0448846ea0fcef5ac0e99f2 | |
parent | c7b7cad0d8df823ea063c86a54316bbcbfa04a7c (diff) |
zram: fix warning of print format
kbuild bot whinges due to print format mistmatch caused by
zram: force disksize setting before using zram.
This patch fixes it.
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | 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 85055c4fc2f2..3318b0ff8f4d 100644 --- a/drivers/staging/zram/zram_drv.c +++ b/drivers/staging/zram/zram_drv.c | |||
@@ -519,7 +519,7 @@ int zram_init_device(struct zram *zram) | |||
519 | "ratio. Note that zram uses about 0.1%% of the size of " | 519 | "ratio. Note that zram uses about 0.1%% of the size of " |
520 | "the disk when not in use so a huge zram is " | 520 | "the disk when not in use so a huge zram is " |
521 | "wasteful.\n" | 521 | "wasteful.\n" |
522 | "\tMemory Size: %zu kB\n" | 522 | "\tMemory Size: %lu kB\n" |
523 | "\tSize you selected: %llu kB\n" | 523 | "\tSize you selected: %llu kB\n" |
524 | "Continuing anyway ...\n", | 524 | "Continuing anyway ...\n", |
525 | (totalram_pages << PAGE_SHIFT) >> 10, zram->disksize >> 10 | 525 | (totalram_pages << PAGE_SHIFT) >> 10, zram->disksize >> 10 |