staging: zram: show correct disksize
authorDavidlohr Bueso <davidlohr.bueso@hp.com>
Wed, 2 Jan 2013 05:24:22 +0000 (21:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 07:45:27 +0000 (23:45 -0800)
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>
drivers/staging/zram/zram_drv.c

index 8115be90517c8f91a9d127167d6ac7723a472998..10d75929bc291057bd37ab51f5aa0c809cc1724a 100644 (file)
@@ -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;