Skip to content

Commit e4c094a

Browse files
akpm00David Woodhouse
authored andcommitted
[MTD] [NAND] drivers/mtd/nand/nandsim.c: fix printk warnings
Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 4f0ca70 commit e4c094a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/mtd/nand/nandsim.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ static int init_nandsim(struct mtd_info *mtd)
586586
if (ns->busw == 16)
587587
NS_WARN("16-bit flashes support wasn't tested\n");
588588

589-
printk("flash size: %llu MiB\n", ns->geom.totsz >> 20);
589+
printk("flash size: %llu MiB\n",
590+
(unsigned long long)ns->geom.totsz >> 20);
590591
printk("page size: %u bytes\n", ns->geom.pgsz);
591592
printk("OOB area size: %u bytes\n", ns->geom.oobsz);
592593
printk("sector size: %u KiB\n", ns->geom.secsz >> 10);
@@ -595,8 +596,9 @@ static int init_nandsim(struct mtd_info *mtd)
595596
printk("bus width: %u\n", ns->busw);
596597
printk("bits in sector size: %u\n", ns->geom.secshift);
597598
printk("bits in page size: %u\n", ns->geom.pgshift);
598-
printk("bits in OOB size: %u\n", ns->geom.oobshift);
599-
printk("flash size with OOB: %llu KiB\n", ns->geom.totszoob >> 10);
599+
printk("bits in OOB size: %u\n", ns->geom.oobshift);
600+
printk("flash size with OOB: %llu KiB\n",
601+
(unsigned long long)ns->geom.totszoob >> 10);
600602
printk("page address bytes: %u\n", ns->geom.pgaddrbytes);
601603
printk("sector address bytes: %u\n", ns->geom.secaddrbytes);
602604
printk("options: %#x\n", ns->options);

0 commit comments

Comments
 (0)