zram: fix warning of print format
authorMinchan Kim <minchan@kernel.org>
Tue, 5 Feb 2013 23:45:22 +0000 (08:45 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 02:01:24 +0000 (18:01 -0800)
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>
drivers/staging/zram/zram_drv.c

index 85055c4fc2f261a34afc35da2c55881919edb13f..3318b0ff8f4dab7a40c0b0ed703f917bc6461696 100644 (file)
@@ -519,7 +519,7 @@ int zram_init_device(struct zram *zram)
                "ratio. Note that zram uses about 0.1%% of the size of "
                "the disk when not in use so a huge zram is "
                "wasteful.\n"
-               "\tMemory Size: %zu kB\n"
+               "\tMemory Size: %lu kB\n"
                "\tSize you selected: %llu kB\n"
                "Continuing anyway ...\n",
                (totalram_pages << PAGE_SHIFT) >> 10, zram->disksize >> 10